summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-08 18:18:56 -0400
committerIan Moffett <ian@osmora.org>2024-06-08 18:18:56 -0400
commitbb537181b48bba16aee0b601d579547d0a5c8122 (patch)
treee894183eec1f5c0a3fe25eda8d6cc1cb3b4c0a8d
parent44ef655a0afc3d2c8aa305f94b412f9d89bec846 (diff)
kernel: Add __static_assert macro
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/sys/cdefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index 655a023..fa0c028 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -37,6 +37,7 @@
#define __packed __attribute__((__packed__))
#define __likely(exp) __builtin_expect(((exp) != 0), 1)
#define __unlikely(exp) __builtin_expect(((exp) != 0), 0)
+#define __static_assert _Static_assert
#if defined(_KERNEL)
/*