2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00

It's better to use MSVC here instead of WIN32, so it wouldn't break MinGW builds

This commit is contained in:
Alibek Omarov 2017-12-28 02:05:47 +03:00
parent 3dda2ec590
commit 9a02d7116f
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ set (CLDLL_LIBRARY client)
add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL)
if(NOT WIN32)
if(NOT MSVC)
add_compile_options(-fno-exceptions) # GCC/Clang flag
add_compile_options(-Wno-write-strings) # GCC/Clang flag
add_definitions(-D_LINUX -DLINUX) # It seems enough for all non-Win32 systems

View File

@ -27,7 +27,7 @@ set (SVDLL_LIBRARY server)
add_definitions(-DCLIENT_WEAPONS)
if(NOT WIN32)
if(NOT MSVC)
add_compile_options(-fno-exceptions) # GCC/Clang flag
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )