port_def.patch 652 B

1234567891011121314
  1. diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc
  2. index f7b64a080..3493d9082 100644
  3. --- a/src/google/protobuf/port_def.inc
  4. +++ b/src/google/protobuf/port_def.inc
  5. @@ -564,7 +564,8 @@
  6. // Our use of constinit does not yet work with GCC:
  7. // https://github.com/protocolbuffers/protobuf/issues/8310
  8. -#if defined(__cpp_constinit) && !defined(__GNUC__)
  9. +// Does not work yet with Visual Studio 2019 Update 16.10
  10. +#if defined(__cpp_constinit) && !defined(__GNUC__) && !defined(_MSC_VER)
  11. #define PROTOBUF_CONSTINIT constinit
  12. #elif defined(__has_cpp_attribute)
  13. #if __has_cpp_attribute(clang::require_constant_initialization)