Selaa lähdekoodia

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

Fix compilation on alpine 3.5
Feng Xiao 8 vuotta sitten
vanhempi
commit
dd0a23325d
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  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 {