From: Michael Jerris Date: Mon, 23 Feb 2009 04:43:42 +0000 (+0000) Subject: mod_lua: fix visibility support (FSCORE-302) X-Git-Tag: v1.0.4~1864 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31897028d24096abc1ee938833e9e791f530d1b2;p=thirdparty%2Ffreeswitch.git mod_lua: fix visibility support (FSCORE-302) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12240 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_lua/lua/luaconf.h b/src/mod/languages/mod_lua/lua/luaconf.h index 62d84c3d9c..537c0967f7 100644 --- a/src/mod/languages/mod_lua/lua/luaconf.h +++ b/src/mod/languages/mod_lua/lua/luaconf.h @@ -161,7 +161,8 @@ #else -#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY) +#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