浏览代码

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 <google/protobuf/stubs/substitute.h>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
 
 
+#ifdef major		
+#undef major		
+#endif		
+#ifdef minor		
+#undef minor		
+#endif		
+
 namespace google {
 namespace google {
 namespace protobuf {
 namespace protobuf {
 namespace compiler {
 namespace compiler {