Skip to content

Commit

Permalink
rbtree: introduce CTAGA_ATTR_ALIGNED(X) macro as a replacement for __…
Browse files Browse the repository at this point in the history
…attribute__((aligned(X)))

Signed-off-by: Masatake YAMATO <[email protected]>
  • Loading branch information
masatake committed Apr 3, 2020
1 parent c5f7501 commit 2c2473a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/gcc-attr.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
#if defined (__GNUC__) && !defined (__GNUG__)
# define CTAGS_ATTR_UNUSED __attribute__((unused))
# define CTAGS_ATTR_PRINTF(s,f) __attribute__((format (printf, s, f)))
# define CTAGA_ATTR_ALIGNED(X) __attribute__((aligned(X)))
# define attr__noreturn __attribute__((__noreturn__))
#else
# define CTAGS_ATTR_UNUSED
# define CTAGS_ATTR_PRINTF(s,f)
# define CTAGA_ATTR_ALIGNED(X)
# define attr__noreturn
#endif

Expand Down

0 comments on commit 2c2473a

Please sign in to comment.