소스 검색

Merge pull request #3055 from chrisn-arm/3.3.x

Fix compilation on alpine 3.5
Feng Xiao 8 년 전
부모
커밋
dd0a23325d
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/google/protobuf/compiler/mock_code_generator.cc

+ 7 - 0
src/google/protobuf/compiler/mock_code_generator.cc

@@ -55,6 +55,13 @@
 #include <google/protobuf/stubs/substitute.h>
 #include <gtest/gtest.h>
 
+#ifdef major		
+#undef major		
+#endif		
+#ifdef minor		
+#undef minor		
+#endif		
+
 namespace google {
 namespace protobuf {
 namespace compiler {