浏览代码

Fixing io_win32 for MinGW32

Jisi Liu 8 年之前
父节点
当前提交
db125b8d3a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/google/protobuf/stubs/io_win32.cc

+ 3 - 0
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>