Internal protobuf changes

PiperOrigin-RevId: 527076622
pull/12476/head
Sandy Zhang 2 years ago committed by Copybara-Service
parent b26afb5a86
commit 7dbe742e6c
  1. 1
      src/google/protobuf/descriptor.proto
  2. 7
      src/google/protobuf/port_def.inc
  3. 5
      src/google/protobuf/port_undef.inc

@ -724,6 +724,7 @@ message FieldOptions {
}
message OneofOptions {
// The parser stores options it doesn't recognize here. See above.
repeated UninterpretedOption uninterpreted_option = 999;

@ -877,6 +877,13 @@ static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and
#undef PACKAGE
#endif
// a few common headers define this
#ifdef PACKED
#define PROTOBUF_DID_UNDEF_PACKED
#pragma push_macro("PACKED")
#undef PACKED
#endif
// linux is a legacy MACRO defined in most popular C++ standards.
#ifdef linux
#pragma push_macro("linux")

@ -127,6 +127,11 @@
#undef PROTOBUF_DID_UNDEF_PACKAGE
#endif
#ifdef PROTOBUF_DID_UNDEF_PACKED
#pragma pop_macro("PACKED")
#undef PROTOBUF_DID_UNDEF_PACKED
#endif
#ifdef PROTOBUF_DID_UNDEF_LINUX
#pragma pop_macro("linux")
#endif

Loading…
Cancel
Save