fix compile error on windows

This commit is contained in:
yihaoDeng 2021-05-18 17:47:36 +08:00
parent 875072a474
commit 35e2e015c0
2 changed files with 3 additions and 2 deletions

View File

@ -168,6 +168,7 @@ IF (TD_WINDOWS)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/regex)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/wepoll/inc)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/MsvcLibX/include)
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/lua/src)
ENDIF ()
IF (TD_WINDOWS_64)

View File

@ -10,7 +10,7 @@
#include <stdarg.h>
#include <stdint.h>
#include "llimits.h"
#include "lua.h"
@ -357,7 +357,7 @@ typedef struct Table {
#define twoto(x) (1<<(x))
#define sizenode(t) (twoto((t)->lsizenode))
#define sizenode(t) (twoto((int64_t)((t)->lsizenode)))
#define luaO_nilobject (&luaO_nilobject_)