fixups: force _CRT_DECLARE_NONSTDC_NAMES when compiling for Xbox

This way we won't use API calls not available on Xbox.
We might as well set it for MSVC desktop builds too to make sure we always
keep Xbox compatibility.
This commit is contained in:
Steve Lhomme 2023-03-01 00:05:21 -08:00
parent e58ce9d447
commit e09c4f9039
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 1
#endif
#if defined(_GAMING_XBOX_SCARLETT) || defined(_GAMING_XBOX_XBOXONE) || defined(_XBOX_ONE)
// make sure we don't use MS POSIX aliases that won't link
# undef _CRT_DECLARE_NONSTDC_NAMES
# define _CRT_DECLARE_NONSTDC_NAMES 0
#endif
// sys/stat.h values
#define S_IWUSR _S_IWRITE