From 35829304d6d8edee15d03845b5e9f1a3b6bdab3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C8=9Bca=20Dumitru?= Date: Sun, 7 Mar 2021 16:54:38 +0200 Subject: [PATCH] LibC: Define static_assert in assert.h when it's being used in C --- Userland/Libraries/LibC/assert.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibC/assert.h b/Userland/Libraries/LibC/assert.h index 9515210309..572a35632a 100644 --- a/Userland/Libraries/LibC/assert.h +++ b/Userland/Libraries/LibC/assert.h @@ -52,4 +52,8 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg); #define VERIFY assert #define TODO VERIFY_NOT_REACHED +#ifndef __cplusplus +# define static_assert _Static_assert +#endif + __END_DECLS