summaryrefslogtreecommitdiff
path: root/src/googletest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/googletest.h')
-rw-r--r--src/googletest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/googletest.h b/src/googletest.h
index b3e26c4..21e4f64 100644
--- a/src/googletest.h
+++ b/src/googletest.h
@@ -81,7 +81,7 @@ static inline string GetTempDir() {
#endif
}
-#ifdef OS_WINDOWS
+#if defined(OS_WINDOWS) && defined(_MSC_VER)
// The test will run in glog/vsproject/<project name>
// (e.g., glog/vsproject/logging_unittest).
static const char TEST_SRC_DIR[] = "../..";