Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
48ee8e98
Commit
48ee8e98
authored
Sep 07, 2016
by
Billy Donahue
Committed by
GitHub
Sep 07, 2016
Browse files
Merge pull request #856 from KindDragon/mingw-appveyor
Fix Mingw-w64 build
parents
ed9d1e1f
d8fe70f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+1
-1
googletest/test/gtest-port_test.cc
googletest/test/gtest-port_test.cc
+1
-1
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
48ee8e98
...
@@ -396,7 +396,7 @@
...
@@ -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
;
...
...
googletest/test/gtest-port_test.cc
View file @
48ee8e98
...
@@ -1295,7 +1295,7 @@ TEST(WindowsTypesTest, HANDLEIsVoidStar) {
...
@@ -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
>
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment