summaryrefslogtreecommitdiff
path: root/kern/macros.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-06-26 22:05:06 +0200
committerRichard Braun <rbraun@sceen.net>2018-06-26 22:05:06 +0200
commit90d079aea8aad73d7b867a0e215f8c3b41a1113f (patch)
tree16f2fe91ec2806201ba27970b0686b9e8cc7e68e /kern/macros.h
parenta18a9d0cc0232dc151cef3d2d61807182ef7f6ea (diff)
kern/macros: new __weak macro
Diffstat (limited to 'kern/macros.h')
-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))