From 416f90939d4de58fe1a4e2489120010313183291 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Tue, 14 Mar 2017 23:12:52 +0000 Subject: Fix freebsd build. It turns out system headers included by generated plugin.pb.h file already contains major/minor macro definitions when built on FreeBSD and we need to add #undefs to the generated header file. This change also fixes another compile error regarding EXPECT_DEATH on FreeBSD. --- src/google/protobuf/compiler/plugin.pb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/google/protobuf/compiler/plugin.pb.h') diff --git a/src/google/protobuf/compiler/plugin.pb.h b/src/google/protobuf/compiler/plugin.pb.h index 1b91daca..d6afb21b 100644 --- a/src/google/protobuf/compiler/plugin.pb.h +++ b/src/google/protobuf/compiler/plugin.pb.h @@ -30,6 +30,12 @@ #include #include // @@protoc_insertion_point(includes) +#ifdef major +#undef major +#endif +#ifdef minor +#undef minor +#endif namespace google { namespace protobuf { class DescriptorProto; -- cgit v1.2.3