Commit af2d5f5a authored by Feng Xiao's avatar Feng Xiao Committed by GitHub

Merge pull request #2775 from xfxyjwf/fixmajor

Undef major/minor if they are defined as macro.
parents 9afacb44 b7f25d42
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef major
#undef major
#endif
#ifdef minor
#undef minor
#endif
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef _MSC_VER #ifdef _MSC_VER
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#endif #endif
#include <vector> #include <vector>
#include <google/protobuf/compiler/plugin.pb.h>
#include <google/protobuf/stubs/logging.h> #include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/common.h>
#include <google/protobuf/testing/file.h> #include <google/protobuf/testing/file.h>
...@@ -54,6 +53,14 @@ ...@@ -54,6 +53,14 @@
#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
#include <google/protobuf/compiler/plugin.pb.h>
namespace google { namespace google {
namespace protobuf { namespace protobuf {
namespace compiler { namespace compiler {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment