diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.44 2005/04/25 19:24:10 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.45 2005/04/27 18:37:51 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -124,7 +124,9 @@ | |||
124 | ** them as "hidden" to optimize their call when Lua is compiled as a | 124 | ** them as "hidden" to optimize their call when Lua is compiled as a |
125 | ** shared library. | 125 | ** shared library. |
126 | */ | 126 | */ |
127 | #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) | 127 | #if defined(luaall_c) |
128 | #define LUAI_FUNC static | ||
129 | #elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) | ||
128 | #define LUAI_FUNC __attribute__((visibility("hidden"))) | 130 | #define LUAI_FUNC __attribute__((visibility("hidden"))) |
129 | #else | 131 | #else |
130 | #define LUAI_FUNC extern | 132 | #define LUAI_FUNC extern |