]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
visibility tweak
authorMichael Jerris <mike@jerris.com>
Mon, 16 Feb 2009 19:32:06 +0000 (19:32 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 16 Feb 2009 19:32:06 +0000 (19:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12065 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_cpp.h
src/include/switch_platform.h

index 38c7c13fcafdf7d7d736799c0302e97182e590b4..30c005a30423f31515b2169e5882c948300961b7 100644 (file)
@@ -78,7 +78,7 @@ Note that the first parameter to the new operator is implicitly handled by c++..
 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(void) consoleCleanLog(char *msg);
                 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
index b9eff657fb85fc871eda23050d32a3f2c829ed1b..4a4a1a1f30d2a4af356c3e016015e610bd8c5a66 100644 (file)
@@ -162,6 +162,7 @@ typedef int gid_t;
 #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 @@ typedef int gid_t;
 #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