aboutsummaryrefslogtreecommitdiff
path: root/vendor/luasocket/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/luasocket/src/compat.h')
-rw-r--r--vendor/luasocket/src/compat.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/luasocket/src/compat.h b/vendor/luasocket/src/compat.h
new file mode 100644
index 00000000..fa2d7d7c
--- /dev/null
+++ b/vendor/luasocket/src/compat.h
@@ -0,0 +1,22 @@
1#ifndef COMPAT_H
2#define COMPAT_H
3
4#if LUA_VERSION_NUM==501
5
6#ifndef _WIN32
7#pragma GCC visibility push(hidden)
8#endif
9
10void luasocket_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
11void *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
20#endif
21
22#endif