luasocket/src/compat.h

23 lines
410 B
C
Raw Normal View History

#ifndef COMPAT_H
#define COMPAT_H
#if LUA_VERSION_NUM==501
2019-02-28 04:56:48 +01:00
#ifndef _WIN32
2019-02-28 04:56:48 +01:00
#pragma GCC visibility push(hidden)
#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);
#ifndef _WIN32
2019-02-28 04:56:48 +01:00
#pragma GCC visibility pop
#endif
2019-02-28 04:56:48 +01:00
#define luaL_setfuncs luasocket_setfuncs
#define luaL_testudata luasocket_testudata
#endif
#endif