aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/stubs/io_win32.cc
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2017-11-10 10:28:14 -0800
committerJisi Liu <jisi.liu@gmail.com>2017-11-10 10:28:14 -0800
commit9c197b7ecba6019b7c81c673cf100b2fad4033ad (patch)
treeaa997af1d17ed7549e654d56671cf0fa1c87e2d9 /src/google/protobuf/stubs/io_win32.cc
parent5eb717c3006ad7da9aa6e49d40328a3963ad22a3 (diff)
downloadprotobuf-9c197b7ecba6019b7c81c673cf100b2fad4033ad.tar.gz
protobuf-9c197b7ecba6019b7c81c673cf100b2fad4033ad.tar.bz2
protobuf-9c197b7ecba6019b7c81c673cf100b2fad4033ad.zip
Support win32 long path for cross compiled build
Diffstat (limited to 'src/google/protobuf/stubs/io_win32.cc')
-rw-r--r--src/google/protobuf/stubs/io_win32.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/io_win32.cc b/src/google/protobuf/stubs/io_win32.cc
index 7e1cf785..fa2cb8b1 100644
--- a/src/google/protobuf/stubs/io_win32.cc
+++ b/src/google/protobuf/stubs/io_win32.cc
@@ -39,7 +39,7 @@
//
// This file is only used on Windows, it's empty on other platforms.
-#if defined(_MSC_VER)
+#if defined(_WIN32)
// Comment this out to fall back to using the ANSI versions (open, mkdir, ...)
// instead of the Unicode ones (_wopen, _wmkdir, ...). Doing so can be useful to
@@ -358,5 +358,5 @@ wstring testonly_path_to_winpath(const string& path) {
} // namespace protobuf
} // namespace google
-#endif // defined(_MSC_VER)
+#endif // defined(_WIN32)