Make sure the code is considered c++17 because using msvc c++20 breaks existing code and no c++20 features are actually being used

This commit is contained in:
Jan 2021-04-01 15:11:39 +02:00
parent ca7637b438
commit 2b0529ab7d
2 changed files with 3 additions and 6 deletions

View File

@ -456,10 +456,7 @@ workspace "iw4x"
--iw4mvm.project()
workspace "*"
buildoptions {
"/std:c++latest"
}
systemversion "latest"
cppdialect "C++17"
defines { "_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS" }
rule "ProtobufCompiler"

View File

@ -5,8 +5,8 @@
#ifndef RC_INVOKED
#define _HAS_CXX17 1
#define _HAS_CXX20 1
//#define _HAS_CXX17 1
//#define _HAS_CXX20 1
#define VC_EXTRALEAN
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_WARNINGS