2015-08-21 20:39:34 +02:00
|
|
|
#ifndef COMPAT_H
|
|
|
|
#define COMPAT_H
|
|
|
|
|
|
|
|
#if LUA_VERSION_NUM==501
|
2019-02-28 04:56:48 +01:00
|
|
|
|
2019-03-01 00:32:07 +01:00
|
|
|
#ifndef _WIN32
|
2019-02-28 04:56:48 +01:00
|
|
|
#pragma GCC visibility push(hidden)
|
2019-03-01 00:32:07 +01:00
|
|
|
#endif
|
2019-02-28 04:56:48 +01:00
|
|
|
|
|
|
|
void luasocket_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
|
|
|
|
void *luasocket_testudata ( lua_State *L, int arg, const char *tname);
|
|
|
|
|
2019-03-01 00:32:07 +01:00
|
|
|
#ifndef _WIN32
|
2019-02-28 04:56:48 +01:00
|
|
|
#pragma GCC visibility pop
|
2019-03-01 00:32:07 +01:00
|
|
|
#endif
|
2019-02-28 04:56:48 +01:00
|
|
|
|
|
|
|
#define luaL_setfuncs luasocket_setfuncs
|
|
|
|
#define luaL_testudata luasocket_testudata
|
|
|
|
|
2015-08-21 20:39:34 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|