mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
use macro for EXTERN "C" begin and end lines in header files to clean up the headers, and to eliminate a format bug in emacs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1291 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+11
-6
@@ -35,9 +35,15 @@
|
||||
#ifndef SWITCH_H
|
||||
#define SWITCH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
#define BEGIN_EXTERN_C extern "C" {
|
||||
#define END_EXTERN_C }
|
||||
#else
|
||||
#define BEGIN_EXTERN_C
|
||||
#define END_EXTERN_C
|
||||
#endif
|
||||
|
||||
BEGIN_EXTERN_C
|
||||
|
||||
//Need to include this before any other includes (MSVC Bug)
|
||||
#include <switch_platform.h>
|
||||
@@ -69,9 +75,8 @@ extern "C" {
|
||||
#include <switch_stun.h>
|
||||
#include <switch_stun.h>
|
||||
#include <switch_log.h>
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
END_EXTERN_C
|
||||
|
||||
/** \mainpage FreeSWITCH
|
||||
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
|
||||
Reference in New Issue
Block a user