diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-06-19 17:23:54 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-06-19 17:23:54 +0000 |
commit | c427f5e8ab231012d7663a0ee408f1225bac971a (patch) | |
tree | b16ed6470fbbc4ea8eace7f836ae8e6448a369a3 /src/gtest-internal-inl.h | |
parent | 4e7e2fcd7ac837bf81d8f120a9a30785d83b3897 (diff) | |
download | gtest-c427f5e8ab231012d7663a0ee408f1225bac971a.tar.gz gtest-c427f5e8ab231012d7663a0ee408f1225bac971a.tar.bz2 gtest-c427f5e8ab231012d7663a0ee408f1225bac971a.tar.xz |
Fixes compatibility with Windows CE and Symbian (By Tim Baverstock and Mika).
git-svn-id: http://googletest.googlecode.com/svn/trunk@270 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r-- | src/gtest-internal-inl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h index 94c9d7e..f909a0a 100644 --- a/src/gtest-internal-inl.h +++ b/src/gtest-internal-inl.h @@ -45,7 +45,9 @@ #error "It must not be included except by Google Test itself." #endif // GTEST_IMPLEMENTATION_ +#ifndef _WIN32_WCE #include <errno.h> +#endif // !_WIN32_WCE #include <stddef.h> #include <stdlib.h> // For strtoll/_strtoul64. @@ -1072,7 +1074,7 @@ class UnitTestImpl { original_working_dir_.Set(FilePath::GetCurrentDir()); if (original_working_dir_.IsEmpty()) { printf("%s\n", "Failed to get the current working directory."); - abort(); + posix::Abort(); } } |