From 2a87bda28a018704b98b57b0f6f29244bdb982a7 Mon Sep 17 00:00:00 2001 From: George Wu Date: Tue, 27 Sep 2016 02:21:38 +0200 Subject: [PATCH] Fixed 2 MinGW compatibility issues. --- src/hcacc.cpp | 2 ++ src/targetver.h | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hcacc.cpp b/src/hcacc.cpp index b04a527..d84ca54 100644 --- a/src/hcacc.cpp +++ b/src/hcacc.cpp @@ -7,7 +7,9 @@ #include #include #include +#ifndef __MINGW_H #include +#endif #include "hca/hca_info.h" #include "hca/CHCA.h" diff --git a/src/targetver.h b/src/targetver.h index 416cebf..94cc02a 100644 --- a/src/targetver.h +++ b/src/targetver.h @@ -1,8 +1,5 @@ #pragma once -// 包括 SDKDDKVer.h 将定义可用的最高版本的 Windows 平台。 - -// 如果要为以前的 Windows 平台生成应用程序,请包括 WinSDKVer.h,并将 -// 将 _WIN32_WINNT 宏设置为要支持的平台,然后再包括 SDKDDKVer.h。 - +#ifdef _MSC_VER #include +#endif