]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_lua: fix visibility support (FSCORE-302)
authorMichael Jerris <mike@jerris.com>
Mon, 23 Feb 2009 04:42:10 +0000 (04:42 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 23 Feb 2009 04:42:10 +0000 (04:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12239 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_lua/lua/luaconf.h

index 5e7b98be65d40f9cc01b8da784a527ba6b913251..62d84c3d9c85af3e1b6ed57caf33f8dc12dfb9fd 100644 (file)
 
 #else
 
+#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY)
+#define LUA_API        __attribute__((visibility("default")))
+#else
 #define LUA_API                extern
-
+#endif
 #endif
 
 /* more often than not the libs go together with the core */