1 #ifndef COMPAT_H 2 #define COMPAT_H 3 4 #include "lua.h" 5 #include "lauxlib.h" 6 7 #ifndef _WIN32 8 #define gai_strerrorA gai_strerror 9 #endif 10 11 #if LUA_VERSION_NUM==501 12 void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); 13 void *luaL_testudata ( lua_State *L, int arg, const char *tname); 14 #endif 15 16 #endif 17