浏览代码

more potential windows macro redefinition

woegster 6 年之前
父节点
当前提交
b467aa1614
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/google/protobuf/compiler/subprocess.h

+ 2 - 0
src/google/protobuf/compiler/subprocess.h

@@ -34,7 +34,9 @@
 #define GOOGLE_PROTOBUF_COMPILER_SUBPROCESS_H__
 
 #ifdef _WIN32
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN  // right...
+#endif
 #include <windows.h>
 #else  // _WIN32
 #include <sys/types.h>