Sfoglia il codice sorgente

Fix issue 3046: compilation on alpine 3.5

Chris Nix 8 anni fa
parent
commit
c3093d3ee5
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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 {