aboutsummaryrefslogtreecommitdiffstats
path: root/include/gtest/internal/gtest-port.h
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-31 18:34:08 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-31 18:34:08 +0000
commitbf9b4b48dc65adc2edd44175f77b4a7363c59234 (patch)
tree4da8e8084682bbd9121ed76e450ee2074620b59f /include/gtest/internal/gtest-port.h
parentdc6ee0e36df772499e5a86ee638f5aae160c1023 (diff)
downloadgoogletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.tar.gz
googletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.tar.bz2
googletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.zip
Makes gtest work on Windows Mobile and Symbian. By Mika Raento.
Diffstat (limited to 'include/gtest/internal/gtest-port.h')
-rw-r--r--include/gtest/internal/gtest-port.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
index 0c422cde..1b7c6a73 100644
--- a/include/gtest/internal/gtest-port.h
+++ b/include/gtest/internal/gtest-port.h
@@ -582,6 +582,15 @@ inline const char* GetEnv(const char* name) {
#endif
}
+#ifdef _WIN32_WCE
+// Windows CE has no C library. The abort() function is used in
+// several places in Google Test. This implementation provides a reasonable
+// imitation of standard behaviour.
+void abort();
+#else
+inline void abort() { ::abort(); }
+#endif // _WIN32_WCE
+
// Macro for referencing flags.
#define GTEST_FLAG(name) FLAGS_gtest_##name