From b979b54cf7bf4e8fce7ddc2b949f909b7664e06e Mon Sep 17 00:00:00 2001 From: dosisod <39638017+dosisod@users.noreply.github.com> Date: Fri, 5 Mar 2021 19:31:09 -0800 Subject: [PATCH] Add macro for static_assert --- libc/assert.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/assert.h b/libc/assert.h index 74f1ea59a..0bdbd60d5 100644 --- a/libc/assert.h +++ b/libc/assert.h @@ -19,6 +19,8 @@ void __assert_fail(const char *, const char *, int) hidden wontreturn relegated; } \ } while (0) +#define static_assert _Static_assert + COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_ASSERT_H_ */