Fixes compatibility with Windows CE and Symbian (By Tim Baverstock and Mika).

This commit is contained in:
zhanyong.wan
2009-06-19 17:23:54 +00:00
parent ae3247986b
commit 4853a50337
11 changed files with 70 additions and 20 deletions

View File

@@ -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();
}
}