mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +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
|
@ -20,7 +20,7 @@ extern "C" {
|
|||
extern u32 __stack_chk_guard;
|
||||
u32 __stack_chk_guard = (u32)0xc6c7c8c9;
|
||||
|
||||
[[noreturn]] void __stack_chk_fail()
|
||||
__attribute__((noreturn)) void __stack_chk_fail()
|
||||
{
|
||||
dbgln("Error: USERSPACE({}) Stack protector failure, stack smashing detected!", getpid());
|
||||
if (__stdio_is_initialized)
|
||||
|
@ -28,7 +28,7 @@ u32 __stack_chk_guard = (u32)0xc6c7c8c9;
|
|||
abort();
|
||||
}
|
||||
|
||||
[[noreturn]] void __stack_chk_fail_local()
|
||||
__attribute__((noreturn)) void __stack_chk_fail_local()
|
||||
{
|
||||
__stack_chk_fail();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue