diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/compat.h | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rw-r--r-- | src/compat.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/compat.h b/src/compat.h index 7bf8010..fa2d7d7 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -1,11 +1,22 @@ | |||
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 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); | 5 | |
6 | #ifndef _WIN32 | ||
7 | #pragma GCC visibility push(hidden) | ||
8 | #endif | ||
9 | |||
10 | void luasocket_setfuncs (lua_State *L, const luaL_Reg *l, int nup); | ||
11 | void *luasocket_testudata ( lua_State *L, int arg, const char *tname); | ||
12 | |||
13 | #ifndef _WIN32 | ||
14 | #pragma GCC visibility pop | ||
15 | #endif | ||
16 | |||
17 | #define luaL_setfuncs luasocket_setfuncs | ||
18 | #define luaL_testudata luasocket_testudata | ||
19 | |||
9 | #endif | 20 | #endif |
10 | 21 | ||
11 | #endif | 22 | #endif |