Use _MSC_VER for MSVC-specific pragmas
These aren't used on mingw so they need to be surrounded by #ifdef _MSC_VER
This commit is contained in:
@@ -37,8 +37,10 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4996) //depricated warnings
|
||||
#pragma warning(disable:4244) //64bit defensive mechanism, fixed the ones that mattered
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#else
|
||||
|
Reference in New Issue
Block a user