summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys/internals.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-06-29 10:31:48 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-03 01:56:31 +0430
commit842249aff54146bf68d49bfd25165eddaf3c9fae (patch)
treea6ae1dec7c04dc762d538d9f98d93e5356c0194b /Userland/Libraries/LibC/sys/internals.h
parent3162c9e21447b3d994f7486fc8d2ee9b681140b4 (diff)
downloadserenity-842249aff54146bf68d49bfd25165eddaf3c9fae.zip
LibC: Don't use C++ attribute syntax in C-visible headers
Fixes errors when building Clang's compiler-rt, which compiles in C11 more.
Diffstat (limited to 'Userland/Libraries/LibC/sys/internals.h')
-rw-r--r--Userland/Libraries/LibC/sys/internals.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibC/sys/internals.h b/Userland/Libraries/LibC/sys/internals.h
index e0f755d732..1ddebc0eb3 100644
--- a/Userland/Libraries/LibC/sys/internals.h
+++ b/Userland/Libraries/LibC/sys/internals.h
@@ -21,8 +21,8 @@ extern bool __stdio_is_initialized;
int __cxa_atexit(AtExitFunction exit_function, void* parameter, void* dso_handle);
void __cxa_finalize(void* dso_handle);
-[[noreturn]] void __cxa_pure_virtual() __attribute__((weak));
-[[noreturn]] void __stack_chk_fail();
-[[noreturn]] void __stack_chk_fail_local();
+__attribute__((noreturn)) void __cxa_pure_virtual() __attribute__((weak));
+__attribute__((noreturn)) void __stack_chk_fail();
+__attribute__((noreturn)) void __stack_chk_fail_local();
__END_DECLS