diff options
author | Richard Braun <rbraun@sceen.net> | 2018-06-26 22:05:06 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-06-26 22:05:06 +0200 |
commit | 90d079aea8aad73d7b867a0e215f8c3b41a1113f (patch) | |
tree | 16f2fe91ec2806201ba27970b0686b9e8cc7e68e /kern/macros.h | |
parent | a18a9d0cc0232dc151cef3d2d61807182ef7f6ea (diff) |
kern/macros: new __weak macro
Diffstat (limited to 'kern/macros.h')
-rw-r--r-- | kern/macros.h | 4 |
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)) |