Skip to content

Commit

Permalink
Update port_def.inc (#8993)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie-cz committed Sep 22, 2021
1 parent 8b59d53 commit 58a7c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/port_def.inc
Expand Up @@ -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
Expand Down

0 comments on commit 58a7c8a

Please sign in to comment.