summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-08 03:02:46 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-08 03:02:46 -0500
commite6ff3efb7e2f44f5fb2463435e3f45300d7223a6 (patch)
tree5bf2871c94724c507e2ed4acd7b1d0bfb856f6f4 /lib
parent2661a95d686375737aa88a41808c3cc49ae12ec5 (diff)
chore: define `_Nonnull` when not available.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/boot.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/boot.h b/lib/boot.h
index e81a671..0badfc0 100644
--- a/lib/boot.h
+++ b/lib/boot.h
@@ -126,6 +126,10 @@ static inline void __sync_synchronize(void) {
#define NB_BOOT_VER 0x101
+#ifndef _Nonnull
+#define _Nonnull
+#endif // ifndef _Nonnull
+
#define NB_BOOT_CALL(struct, offset) \
volatile cb_proc_t proc_##offset = (volatile cb_proc_t)(struct->offset); \
proc_##offset();