From 58a7c8ab92b6e78df263bddb8d6245f84caf0fc0 Mon Sep 17 00:00:00 2001 From: Eddie-cz <48474051+Eddie-cz@users.noreply.github.com> Date: Wed, 22 Sep 2021 23:13:17 +0200 Subject: [PATCH] Update port_def.inc (#8993) --- src/google/protobuf/port_def.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc index 4f73ff99f4..ad1cec3304 100644 --- a/src/google/protobuf/port_def.inc +++ b/src/google/protobuf/port_def.inc @@ -568,7 +568,7 @@ // https://github.com/protocolbuffers/protobuf/issues/8310 // Does not work yet with Visual Studio 2019 Update 16.10 #define PROTOBUF_CONSTINIT constinit -#elif __has_cpp_attribute(clang::require_constant_initialization) +#elif !defined(_MSC_VER) && __has_cpp_attribute(clang::require_constant_initialization) #define PROTOBUF_CONSTINIT [[clang::require_constant_initialization]] #else #define PROTOBUF_CONSTINIT