FS-5999: set visibility on lua symbols that are supposed to be exported

This commit is contained in:
Michael Jerris 2014-02-04 16:09:08 -05:00
parent b65d2a9a78
commit 1f2b632aee
1 changed files with 6 additions and 1 deletions

View File

@ -150,7 +150,12 @@
#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 /* } */