Skip to content

Commit

Permalink
libmaple_types.h: add ifndef guards for some macros
Browse files Browse the repository at this point in the history
Signed-off-by: Marti Bolivar <[email protected]>
  • Loading branch information
Marti Bolivar committed Oct 30, 2014
1 parent 29c49dd commit 32b6da1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmaple/include/libmaple/libmaple_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32b6da1

Please sign in to comment.