Browse Source

more potential windows macro redefinition

woegster 6 years ago
parent
commit
b467aa1614
1 changed files with 2 additions and 0 deletions
  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__
 #define GOOGLE_PROTOBUF_COMPILER_SUBPROCESS_H__
 
 
 #ifdef _WIN32
 #ifdef _WIN32
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN  // right...
 #define WIN32_LEAN_AND_MEAN  // right...
+#endif
 #include <windows.h>
 #include <windows.h>
 #else  // _WIN32
 #else  // _WIN32
 #include <sys/types.h>
 #include <sys/types.h>