mod_lua: fix visibility support (FSCORE-302)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12239 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-23 04:42:10 +00:00
parent be679717ba
commit e4b4288719
1 changed files with 4 additions and 1 deletions

View File

@ -161,8 +161,11 @@
#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 */