Merge pull request #856 from KindDragon/mingw-appveyor
Fix Mingw-w64 build
This commit is contained in:
commit
48ee8e98ab
|
@ -396,7 +396,7 @@
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
# endif
|
# endif
|
||||||
// In order to avoid having to include <windows.h>, use forward declaration
|
// In order to avoid having to include <windows.h>, use forward declaration
|
||||||
#if GTEST_OS_WINDOWS_MINGW
|
#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
|
||||||
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
|
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
|
||||||
// separate (equivalent) structs, instead of using typedef
|
// separate (equivalent) structs, instead of using typedef
|
||||||
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
||||||
|
|
|
@ -1295,7 +1295,7 @@ TEST(WindowsTypesTest, HANDLEIsVoidStar) {
|
||||||
StaticAssertTypeEq<HANDLE, void*>();
|
StaticAssertTypeEq<HANDLE, void*>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if GTEST_OS_WINDOWS_MINGW
|
#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
|
||||||
TEST(WindowsTypesTest, _CRITICAL_SECTIONIs_CRITICAL_SECTION) {
|
TEST(WindowsTypesTest, _CRITICAL_SECTIONIs_CRITICAL_SECTION) {
|
||||||
StaticAssertTypeEq<CRITICAL_SECTION, _CRITICAL_SECTION>();
|
StaticAssertTypeEq<CRITICAL_SECTION, _CRITICAL_SECTION>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user