diff options
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/compat.h b/src/compat.h index 49e83f9..8c32b07 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -1,14 +1,18 @@ | |||
1 | #ifndef COMPAT_H | 1 | #ifndef COMPAT_H |
2 | #define COMPAT_H | 2 | #define COMPAT_H |
3 | 3 | ||
4 | #include "lua.h" | ||
5 | #include "lauxlib.h" | ||
6 | |||
7 | #if LUA_VERSION_NUM==501 | 4 | #if LUA_VERSION_NUM==501 |
8 | #define luaL_setfuncs socket_setfuncs | 5 | |
9 | #define luaL_testudata socket_testudata | 6 | #pragma GCC visibility push(hidden) |
10 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); | 7 | |
11 | void *luaL_testudata ( lua_State *L, int arg, const char *tname); | 8 | void luasocket_setfuncs (lua_State *L, const luaL_Reg *l, int nup); |
9 | void *luasocket_testudata ( lua_State *L, int arg, const char *tname); | ||
10 | |||
11 | #pragma GCC visibility pop | ||
12 | |||
13 | #define luaL_setfuncs luasocket_setfuncs | ||
14 | #define luaL_testudata luasocket_testudata | ||
15 | |||
12 | #endif | 16 | #endif |
13 | 17 | ||
14 | #endif | 18 | #endif |