[libc-commits] [libc] [libc] assert.h modifications for newhdrgen (PR #98092)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Mon Jul 8 16:14:50 PDT 2024


================
@@ -12,4 +12,21 @@
 // This file may be usefully included multiple times to change assert()'s
 // definition based on NDEBUG.
 
+#ifndef __cplusplus
+#undef static_assert
+#define static_assert _Static_assert
----------------
petrhosek wrote:

This is already defined in `__llvm-libc-common.h` which is included above.

https://github.com/llvm/llvm-project/pull/98092


More information about the libc-commits mailing list