Android compatibility fix: avoid regex.h include to be able to build OpenCV for platform android-5

This commit is contained in:
Andrey Kamaev 2011-04-21 12:54:16 +00:00
parent 64814321ee
commit 16044d1ad5

View File

@ -316,8 +316,8 @@
#define GTEST_OS_AIX 1
#endif // __CYGWIN__
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
GTEST_OS_SOLARIS || GTEST_OS_AIX
#if (GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \
GTEST_OS_SOLARIS || GTEST_OS_AIX) && !defined(ANDROID)
// On some platforms, <regex.h> needs someone to define size_t, and
// won't compile otherwise. We can #include it here as we already