]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5999: set visibility on lua symbols that are supposed to be exported
authorMichael Jerris <mike@jerris.com>
Tue, 4 Feb 2014 21:09:08 +0000 (16:09 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 4 Feb 2014 21:09:08 +0000 (16:09 -0500)
src/mod/languages/mod_lua/lua/luaconf.h

index df802c9526fa8c8be48c0258356c3b5d5cd8a96d..203b033be85bba874dd41c9e27c79563584723b4 100644 (file)
 
 #else                          /* }{ */
 
-#define LUA_API                extern
+#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY) && (defined(LUA_CORE) || defined(LUA_LIB))
+#define LUA_API        __attribute__((visibility("default")))
+#else
+#define LUA_API                extern
+#endif
+#endif
 
 #endif                         /* } */