From 485a74ab909a6d71a713ccbccdb093fcb3dfd309 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 17 Oct 2014 16:47:52 +0800 Subject: libmaple_types.h: add ifndef guards for some macros Signed-off-by: Marti Bolivar --- libmaple/include/libmaple/libmaple_types.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3