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

@@ -1,6 +1,10 @@
#define _CRT_SECURE_NO_WARNINGS
#ifdef _MSC_VER
#pragma warning(disable : 4214) /* nonstandard extension, non-int bitfield */
#pragma warning(disable : 4054) /* function pointer to data pointer */
#endif
#include <windows.h>
#define COBJMACROS

View File

@@ -1,7 +1,9 @@
#pragma once
#ifdef _MSC_VER
/* conversion from data/function pointer */
#pragma warning(disable: 4152)
#endif
#include "../graphics-hook-info.h"