We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3450528 commit 03fb85fCopy full SHA for 03fb85f
modules/ts/include/opencv2/ts/ts_gtest.h
@@ -720,7 +720,7 @@
720
# include <io.h>
721
# endif
722
// In order to avoid having to include <windows.h>, use forward declaration
723
-# if GTEST_OS_WINDOWS_MINGW
+#if GTEST_OS_WINDOWS_MINGW && !defined(__MINGW64_VERSION_MAJOR)
724
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
725
// separate (equivalent) structs, instead of using typedef
726
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
0 commit comments