소스 검색

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>