Cleans up the use of GTEST_OS_WINDOWS and _MSC_VER.

This commit is contained in:
zhanyong.wan
2009-03-31 16:27:55 +00:00
parent 3e54f5a371
commit 6a26383e31
5 changed files with 13 additions and 24 deletions

View File

@@ -62,12 +62,12 @@
namespace testing {
namespace internal {
#if GTEST_OS_WINDOWS
// Microsoft does not provide a definition of STDERR_FILENO.
#ifdef _MSC_VER
// MSVC does not provide a definition of STDERR_FILENO.
const int kStdErrFileno = 2;
#else
const int kStdErrFileno = STDERR_FILENO;
#endif // GTEST_OS_WINDOWS
#endif // _MSC_VER
#if GTEST_USES_POSIX_RE