aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-03-20 17:46:05 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:56:54 -0400
commit6b2dfa0f90b3422e4cbfa6f51770acde50b19cfa (patch)
tree1fdad6ca96fe91a60ec8564749c50d8f5b3a5949 /libmaple
parent21468a69ca2e7ff9a5c7ffc03c608a24f1412d64 (diff)
downloadlibrambutan-6b2dfa0f90b3422e4cbfa6f51770acde50b19cfa.tar.gz
librambutan-6b2dfa0f90b3422e4cbfa6f51770acde50b19cfa.zip
Add __weak to <libmaple/libmaple_types.h>.
This is just an alias for __attribute__((weak)). Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/include/libmaple/libmaple_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/libmaple_types.h b/libmaple/include/libmaple/libmaple_types.h
index 25ad222..b2c424a 100644
--- a/libmaple/include/libmaple/libmaple_types.h
+++ b/libmaple/include/libmaple/libmaple_types.h
@@ -53,6 +53,7 @@ typedef void (*voidFuncPtr)(void);
#define __attr_flash __attribute__((section (".USER_FLASH")))
#define __packed __attribute__((__packed__))
#define __deprecated __attribute__((__deprecated__))
+#define __weak __attribute__((weak))
#ifndef NULL
#define NULL 0