mirror of https://code.videolan.org/videolan/vlc
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:
parent
e58ce9d447
commit
e09c4f9039
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue