aboutsummaryrefslogtreecommitdiffstats
path: root/include/gtest
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2014-06-18 21:31:01 +0000
committerkosak <kosak@google.com>2014-06-18 21:31:01 +0000
commitbd263344f9e930ab7d3558c1b7706a55739737cb (patch)
treec859c3c901d101cc296188c7a4af67dcaa47b96c /include/gtest
parent96ddffe8fdabccb10fb693a54dcb88bd5b71bc09 (diff)
downloadgoogletest-bd263344f9e930ab7d3558c1b7706a55739737cb.tar.gz
googletest-bd263344f9e930ab7d3558c1b7706a55739737cb.tar.bz2
googletest-bd263344f9e930ab7d3558c1b7706a55739737cb.zip
Additional changes, to add support for Windows Phone and Windows RT
Diffstat (limited to 'include/gtest')
-rw-r--r--include/gtest/internal/gtest-port.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
index efb479d8..f376dfa0 100644
--- a/include/gtest/internal/gtest-port.h
+++ b/include/gtest/internal/gtest-port.h
@@ -917,7 +917,9 @@ using ::std::tuple_size;
# endif
#define GTEST_IS_THREADSAFE \
- (GTEST_OS_WINDOWS || GTEST_HAS_PTHREAD)
+ (0 \
+ || (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
+ || GTEST_HAS_PTHREAD)
#endif // GTEST_HAS_SEH
@@ -1465,7 +1467,7 @@ class Notification {
GTEST_DISALLOW_COPY_AND_ASSIGN_(Notification);
};
-# elif GTEST_OS_WINDOWS
+# elif GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT
GTEST_API_ void SleepMilliseconds(int n);
@@ -1600,7 +1602,7 @@ class ThreadWithParam : public ThreadWithParamBase {
# endif // GTEST_HAS_PTHREAD && !GTEST_OS_WINDOWS_MINGW
# if 0 // OS detection
-# elif GTEST_OS_WINDOWS
+# elif GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT
// Mutex implements mutex on Windows platforms. It is used in conjunction
// with class MutexLock: