[commit] r12065 - freeswitch/trunk/src/include
Author: mikej Date: Mon Feb 16 13:32:06 2009 New Revision: 12065 Log: visibility tweak Modified: freeswitch/trunk/src/include/switch_cpp.h freeswitch/trunk/src/include/switch_platform.h Modified: freeswitch/trunk/src/include/switch_cpp.h ============================================================================== --- freeswitch/trunk/src/include/switch_cpp.h (original) +++ freeswitch/trunk/src/include/switch_cpp.h Mon Feb 16 13:32:06 2009 @@ -78,7 +78,7 @@ SWITCH_DECLARE(void) consoleLog(char *level_str, char *msg); SWITCH_DECLARE(void) consoleCleanLog(char *msg); - class CoreSession; + class SWITCH_DECLARE_CLASS CoreSession; class IVRMenu { protected: @@ -185,7 +185,7 @@ SWITCH_DECLARE(Event *) pop(int block = 0); }; - class CoreSession { + class SWITCH_DECLARE_CLASS CoreSession { protected: switch_input_args_t args; // holds ptr to cb function and input_callback_state struct // which has a language specific callback function Modified: freeswitch/trunk/src/include/switch_platform.h ============================================================================== --- freeswitch/trunk/src/include/switch_platform.h (original) +++ freeswitch/trunk/src/include/switch_platform.h Mon Feb 16 13:32:06 2009 @@ -162,6 +162,7 @@ #define S_IWUSR _S_IWRITE #endif #define SWITCH_THREAD_FUNC __stdcall +#define SWITCH_DECLARE_CLASS #else //not win32 #define O_BINARY 0 #if (defined(__GNUC__) || defined(__SUNCC__)) && defined(SWITCH_API_VISIBILITY) @@ -170,12 +171,14 @@ #define SWITCH_DECLARE_DATA __attribute__((visibility("default"))) #define SWITCH_MOD_DECLARE(type) __attribute__((visibility("default"))) type #define SWITCH_MOD_DECLARE_DATA __attribute__((visibility("default"))) +#define SWITCH_DECLARE_CLASS __attribute__((visibility("default"))) #else #define SWITCH_DECLARE(type) type #define SWITCH_DECLARE_NONSTD(type) type #define SWITCH_DECLARE_DATA #define SWITCH_MOD_DECLARE(type) type #define SWITCH_MOD_DECLARE_DATA +#define SWITCH_DECLARE_CLASS #endif #define SWITCH_THREAD_FUNC #endif
participants (1)
-
FreeSWITCH SVN