diff options
author | shiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-11-10 18:27:46 +0000 |
---|---|---|
committer | shiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-11-10 18:27:46 +0000 |
commit | d2849f573052ba8431a887e0034b1be353a0d9b4 (patch) | |
tree | eaf19543ad06eba0c37e371b56d135d73eeff9f9 /src/gtest.cc | |
parent | cea25099b5c826e183a56462abc86a8b3b1f9722 (diff) | |
download | googletest-d2849f573052ba8431a887e0034b1be353a0d9b4.tar.gz googletest-d2849f573052ba8431a887e0034b1be353a0d9b4.tar.bz2 googletest-d2849f573052ba8431a887e0034b1be353a0d9b4.zip |
Makes Google Test compile on Solaris and z/OS. By Rainer Klaffenboeck.
Diffstat (limited to 'src/gtest.cc')
-rw-r--r-- | src/gtest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gtest.cc b/src/gtest.cc index 9cc50e05..b5c3d077 100644 --- a/src/gtest.cc +++ b/src/gtest.cc @@ -65,6 +65,10 @@ #define GTEST_HAS_GETTIMEOFDAY #include <sys/time.h> // NOLINT +#elif defined(GTEST_OS_ZOS) +// On z/OS we additionally need strings.h for strcasecmp. +#include <strings.h> + #elif defined(_WIN32_WCE) // We are on Windows CE. #include <windows.h> // NOLINT @@ -2445,7 +2449,7 @@ void ColoredPrintf(GTestColor color, const char* fmt, ...) { va_list args; va_start(args, fmt); -#if defined(_WIN32_WCE) || defined(GTEST_OS_SYMBIAN) +#if defined(_WIN32_WCE) || defined(GTEST_OS_SYMBIAN) || defined(GTEST_OS_ZOS) static const bool use_color = false; #else static const bool use_color = ShouldUseColor(isatty(fileno(stdout)) != 0); |