aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2017-08-11 11:32:22 -0700
committerJisi Liu <jisi.liu@gmail.com>2017-08-11 11:38:40 -0700
commitdb125b8d3a3ceb8d2ed0938f6121858393078097 (patch)
tree8034866c00c4d25f9f5177be098762cb54ebe086
parentd2f3adb3b30c8d032f7bda0137593e932975306c (diff)
downloadprotobuf-db125b8d3a3ceb8d2ed0938f6121858393078097.tar.gz
protobuf-db125b8d3a3ceb8d2ed0938f6121858393078097.tar.bz2
protobuf-db125b8d3a3ceb8d2ed0938f6121858393078097.zip
Fixing io_win32 for MinGW32
-rw-r--r--src/google/protobuf/stubs/io_win32.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google/protobuf/stubs/io_win32.cc b/src/google/protobuf/stubs/io_win32.cc
index 6f0295e1..a6449751 100644
--- a/src/google/protobuf/stubs/io_win32.cc
+++ b/src/google/protobuf/stubs/io_win32.cc
@@ -44,7 +44,10 @@
// 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
// debug failing tests if that's caused by the long path support.
+// Long path support is disabled in MinGW
+#ifndef __MINGW32__
#define SUPPORT_LONGPATHS
+#endif // !__MINGW32__
#include <ctype.h>
#include <direct.h>