aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtest-port.cc')
-rw-r--r--src/gtest-port.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtest-port.cc b/src/gtest-port.cc
index ef213892..166ff414 100644
--- a/src/gtest-port.cc
+++ b/src/gtest-port.cc
@@ -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