summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kern/macros.h b/kern/macros.h
index 6d136e3e..ddd9e587 100644
--- a/kern/macros.h
+++ b/kern/macros.h
@@ -105,6 +105,10 @@
#define __used __attribute__((used))
#endif
+#ifndef __weak
+#define __weak __attribute__((weak))
+#endif
+
#ifndef __fallthrough
#if __GNUC__ >= 7
#define __fallthrough __attribute__((fallthrough))