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:
jp9000
2015-02-08 15:49:25 -08:00
parent 73d3be9311
commit 6b38fa35b0
6 changed files with 20 additions and 2 deletions

View File

@@ -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