lua-engine.cpp: fix build error with mingw

../../lua-engine.cpp:1552:31: error: 'vscprintf' was not declared in this scope
  int len = vscprintf(fmt, list);
                               ^
This commit is contained in:
rofl0r 2024-12-06 02:31:19 +00:00
parent 420bf01375
commit 47233bab4c
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ static std::map<lua_CFunction, const char*> s_cFuncInfoMap;
static const char* name##_args = s_cFuncInfoMap[name] = argstring; \
static int name(lua_State* L)
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
#ifndef snprintf
#define snprintf _snprintf
#endif