From 87d3a24f2d668116653696012be4b49acc6b3d61 Mon Sep 17 00:00:00 2001 From: dosisod <39638017+dosisod@users.noreply.github.com> Date: Tue, 9 Mar 2021 20:20:56 -0800 Subject: [PATCH] Add noreturn macro --- libc/isystem/stdnoreturn.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libc/isystem/stdnoreturn.h diff --git a/libc/isystem/stdnoreturn.h b/libc/isystem/stdnoreturn.h new file mode 100644 index 000000000..45dd3dcc2 --- /dev/null +++ b/libc/isystem/stdnoreturn.h @@ -0,0 +1,15 @@ +#ifndef LIBC_ISYSTEM_STDNORETURN_H_ +#define LIBC_ISYSTEM_STDNORETURN_H_ + +#if !(__ASSEMBLER__ + __LINKER__ + 0) +#if __STDC_VERSION__ + 0 >= 201112 +COSMOPOLITAN_C_START_ + +#define noreturn _Noreturn + +COSMOPOLITAN_C_END_ + +#endif /* C11 */ +#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ + +#endif