diff --git a/build/premake/premake.lua b/build/premake/premake.lua index ebe3d9db5b..2ed04e7bd9 100755 --- a/build/premake/premake.lua +++ b/build/premake/premake.lua @@ -222,6 +222,11 @@ function setuppackage_engine (projectname) -- required to use WinMain() on Windows, otherwise will default to main() tinsert(package.buildflags, { "no-main" }) + -- use native wchar_t type (not typedef to unsigned short) + package.buildoptions = { + "/Zc:wchar_t", + } + package.pchHeader = "precompiled.h" package.pchSource = "precompiled.cpp"