diff options
author | Ian Moffett <ian@osmora.org> | 2024-12-20 00:14:28 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-12-20 00:14:28 -0500 |
commit | 54ce6d3224e68674de3036ed571a85ff09207068 (patch) | |
tree | 1dac36342c8cd9fc64df4e14ee9952856023caeb | |
parent | b6cceb40835d6b200aaf8731ba9dac5c3bb62180 (diff) |
kernel: cdefs: Add __weak macro
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/include/sys/cdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h index 73ff4ca..66a2dff 100644 --- a/sys/include/sys/cdefs.h +++ b/sys/include/sys/cdefs.h @@ -33,6 +33,7 @@ #include <sys/param.h> #define __ASMV __asm__ __volatile__ +#define __weak __attribute__((__weak__)) #define __always_inline __attribute__((__always_inline__)) #define __packed __attribute__((__packed__)) #define __dead __attribute__((__noreturn__)) |