summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_boringssl_src_crypto_refcount__c11.c
blob: 77f5256190d9732c673609e9959f5aae96738b5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- third_party/boringssl/src/crypto/refcount_c11.c.orig	2022-02-07 13:39:41 UTC
+++ third_party/boringssl/src/crypto/refcount_c11.c
@@ -24,6 +24,9 @@
 
 #include <openssl/type_check.h>
 
+#if !defined(__cplusplus) && !defined(static_assert)
+#define static_assert _Static_assert
+#endif
 
 // See comment above the typedef of CRYPTO_refcount_t about these tests.
 static_assert(alignof(CRYPTO_refcount_t) == alignof(_Atomic CRYPTO_refcount_t),