mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:47:44 +00:00
LibC: Don't use C++ attribute syntax in C-visible headers
Fixes errors when building Clang's compiler-rt, which compiles in C11 more.
This commit is contained in:
parent
3162c9e214
commit
842249aff5
4 changed files with 8 additions and 8 deletions
|
@ -11,7 +11,7 @@
|
|||
__BEGIN_DECLS
|
||||
|
||||
#ifdef DEBUG
|
||||
[[noreturn]] void __assertion_failed(const char* msg);
|
||||
__attribute__((noreturn)) void __assertion_failed(const char* msg);
|
||||
# define __stringify_helper(x) # x
|
||||
# define __stringify(x) __stringify_helper(x)
|
||||
# define assert(expr) \
|
||||
|
@ -24,7 +24,7 @@ __BEGIN_DECLS
|
|||
# define VERIFY_NOT_REACHED() _abort()
|
||||
#endif
|
||||
|
||||
[[noreturn]] void _abort();
|
||||
__attribute__((noreturn)) void _abort();
|
||||
|
||||
#ifndef __cplusplus
|
||||
# define static_assert _Static_assert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue