mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Oops, forgot to add the luasocket compat hack thing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#define LUA_COMPAT_ALL
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#if LUA_VERSION_NUM > 501
|
||||
# define luaL_reg luaL_Reg
|
||||
# define luaL_putchar(B, c) luaL_addchar(B, c)
|
||||
# define luaL_typerror(L, n, t) luax_typerror(L, n, t)
|
||||
|
||||
extern int luax_typerror(lua_State *L, int narg, const char *type);
|
||||
#endif
|
||||
Reference in New Issue
Block a user