Internal Code Change

PiperOrigin-RevId: 541945479
pull/13095/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 6e3dca3668
commit a4408b1374
  1. 2
      src/google/protobuf/port_def.inc
  2. 1
      src/google/protobuf/port_undef.inc
  3. 5
      src/google/protobuf/util/field_comparator.cc

@ -939,6 +939,8 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3),
// Windows declares several inconvenient macro names. We #undef them and then // Windows declares several inconvenient macro names. We #undef them and then
// restore them in port_undef.inc. // restore them in port_undef.inc.
#ifdef _WIN32 #ifdef _WIN32
#pragma push_macro("CompareString")
#undef CompareString
#pragma push_macro("CREATE_NEW") #pragma push_macro("CREATE_NEW")
#undef CREATE_NEW #undef CREATE_NEW
#pragma push_macro("DELETE") #pragma push_macro("DELETE")

@ -144,6 +144,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#pragma pop_macro("CompareString")
#pragma pop_macro("CREATE_NEW") #pragma pop_macro("CREATE_NEW")
#pragma pop_macro("DELETE") #pragma pop_macro("DELETE")
#pragma pop_macro("DOUBLE_CLICK") #pragma pop_macro("DOUBLE_CLICK")

@ -44,6 +44,9 @@
#include "absl/log/absl_log.h" #include "absl/log/absl_log.h"
#include "google/protobuf/util/message_differencer.h" #include "google/protobuf/util/message_differencer.h"
// Must be included last.
#include "google/protobuf/port_def.inc"
namespace google { namespace google {
namespace protobuf { namespace protobuf {
namespace util { namespace util {
@ -245,3 +248,5 @@ FieldComparator::ComparisonResult SimpleFieldComparator::ResultFromBoolean(
} // namespace util } // namespace util
} // namespace protobuf } // namespace protobuf
} // namespace google } // namespace google
#include "google/protobuf/port_undef.inc"

Loading…
Cancel
Save