aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2014-10-17 16:47:52 +0800
committerbryan newbold <bnewbold@twinleaf.com>2014-11-26 01:10:47 -0800
commit485a74ab909a6d71a713ccbccdb093fcb3dfd309 (patch)
treea461680d555e63e815938946bb0e4cd1b2e0066d /libmaple
parent3055e5fde4915f68ef991d482db3ecffb6a03920 (diff)
downloadlibrambutan-485a74ab909a6d71a713ccbccdb093fcb3dfd309.tar.gz
librambutan-485a74ab909a6d71a713ccbccdb093fcb3dfd309.zip
libmaple_types.h: add ifndef guards for some macros
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/include/libmaple/libmaple_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/libmaple_types.h b/libmaple/include/libmaple/libmaple_types.h
index 60dd2ff..b4fd625 100644
--- a/libmaple/include/libmaple/libmaple_types.h
+++ b/libmaple/include/libmaple/libmaple_types.h
@@ -55,8 +55,12 @@ typedef void (*voidArgumentFuncPtr)(void *);
#define __packed __attribute__((__packed__))
#define __deprecated __attribute__((__deprecated__))
#define __weak __attribute__((weak))
+#ifndef __always_inline
#define __always_inline inline __attribute__((always_inline))
+#endif
+#ifndef __unused
#define __unused __attribute__((unused))
+#endif
#ifndef NULL
#define NULL 0