2022-07-25 16:11:15 +02:00
|
|
|
Index: protobuf-21.3/src/google/protobuf/port_def.inc
|
|
|
|
===================================================================
|
|
|
|
--- protobuf-21.3.orig/src/google/protobuf/port_def.inc
|
|
|
|
+++ protobuf-21.3/src/google/protobuf/port_def.inc
|
|
|
|
@@ -652,7 +652,11 @@
|
2022-05-05 16:47:45 +02:00
|
|
|
#define PROTOBUF_CONSTINIT [[clang::require_constant_initialization]]
|
|
|
|
#define PROTOBUF_CONSTEXPR constexpr
|
2022-07-11 09:31:25 +02:00
|
|
|
#elif PROTOBUF_GNUC_MIN(12, 2)
|
2022-05-05 16:47:45 +02:00
|
|
|
+#if PROTOBUF_CPLUSPLUS_MIN(201703L)
|
|
|
|
#define PROTOBUF_CONSTINIT __constinit
|
|
|
|
+#else
|
|
|
|
+#define PROTOBUF_CONSTINIT
|
|
|
|
+#endif
|
|
|
|
#define PROTOBUF_CONSTEXPR constexpr
|
2022-07-25 16:11:15 +02:00
|
|
|
// MSVC 17 currently seems to raise an error about constant-initialized pointers.
|
|
|
|
#elif defined(_MSC_VER) && _MSC_VER >= 1930
|