mirror of
https://github.com/edubart/otclient.git
synced 2025-05-04 11:39:20 +02:00
Prevent luaL_newlib macro redefinition (#1198)
This commit is contained in:
parent
4a39d49fc1
commit
0e5de3383e
@ -158,6 +158,7 @@ static lua_Unsigned luaL_checkunsigned (lua_State *L, int arg) {
|
|||||||
|
|
||||||
#define LUAMOD_API LUALIB_API
|
#define LUAMOD_API LUALIB_API
|
||||||
#define LUA_BIT32LIBNAME "bit32"
|
#define LUA_BIT32LIBNAME "bit32"
|
||||||
|
#undef luaL_newlib
|
||||||
#define luaL_newlib(x, y) luaL_register(x, LUA_BIT32LIBNAME, y)
|
#define luaL_newlib(x, y) luaL_register(x, LUA_BIT32LIBNAME, y)
|
||||||
|
|
||||||
/* ----- avoid a 'symbol redefined' warning below ----- */
|
/* ----- avoid a 'symbol redefined' warning below ----- */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user