Fix up the tf2, etc. sdk update convar fix

This commit is contained in:
Nicholas Hastings 2025-02-20 17:29:08 -05:00
parent 8641223767
commit 567084afd4
3 changed files with 7 additions and 1 deletions

View File

@ -178,7 +178,6 @@ class MMSConfig(object):
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_SECURE_NO_WARNINGS',
'_CRT_NONSTDC_NO_DEPRECATE',
'_ALLOW_KEYWORD_MACROS',
]
cxx.cflags += [
'/W3',

View File

@ -37,6 +37,7 @@ for sdk_target in MMS.sdk_targets:
'provider/source/provider_source_console.cpp',
'vsp_bridge.cpp'
]
binary.compiler.defines += ['_ALLOW_KEYWORD_MACROS']
if cxx.target.arch == 'x86':
binary.sources += ['sourcehook/sourcehook_hookmangen_x86.cpp']

View File

@ -27,8 +27,14 @@
#pragma once
#ifndef META_IS_SOURCE2
#define protected public
#define private public
#endif
#include <convar.h>
#ifndef META_IS_SOURCE2
#undef protected
#undef private
#endif