Przeglądaj źródła

Fix issue 3046: compilation on alpine 3.5

Chris Nix 8 lat temu
rodzic
commit
c3093d3ee5

+ 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 {