Index: modules/ts/include/opencv2/ts/ts_gtest.h =================================================================== --- modules/ts/include/opencv2/ts/ts_gtest.h (revision 4773) +++ modules/ts/include/opencv2/ts/ts_gtest.h (working copy) @@ -1649,7 +1649,7 @@ #endif // GTEST_HAS_SEH -#ifdef _MSC_VER +#if defined WIN32 || defined _WIN32 || defined WINCE #if GTEST_LINKED_AS_SHARED_LIBRARY #define GTEST_API_ __declspec(dllimport) @@ -1657,7 +1657,7 @@ #define GTEST_API_ __declspec(dllexport) #endif -#endif // _MSC_VER +#endif // WIN32 || _WIN32 || WINCE #ifndef GTEST_API_ #define GTEST_API_