citra-emu
/
citra-canary
Archived
1
0
Fork 0

CMake: Avoid non-compliant standard library extensions in MSVC

This commit is contained in:
kdex 2018-05-24 06:23:06 +02:00
parent 45aa95093c
commit 513fffc96b
No known key found for this signature in database
GPG Key ID: 65EC884AFF7D98E1
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ if (NOT MSVC)
else()
# Silence "deprecation" warnings
add_definitions(/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS)
# Avoid non-compliant standard library extensions
add_definitions(/D_CRT_DECLARE_NONSTDC_NAMES)
# Avoid windows.h junk
add_definitions(/DNOMINMAX)
# Avoid windows.h from including some usually unused libs like winsocks.h, since this might cause some redefinition errors.