toolchain: change aligned/used macros to support external c libraries
use __aligned__ and __used__ instead of aligned/used to avoid conflicts with macros of the same name. Change-Id: Ic36067dfc9df7ebcea486a075f759825d0dbde70 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
db13998741
commit
9104031a96
1 changed files with 2 additions and 3 deletions
|
@ -83,11 +83,10 @@ __extension__ ({ \
|
|||
#define _GENERIC_SECTION(segment) __attribute__((section(#segment)))
|
||||
|
||||
#define __packed __attribute__((__packed__))
|
||||
#define __aligned(x) __attribute__((aligned(x)))
|
||||
#define __aligned(x) __attribute__((__aligned__(x)))
|
||||
#define __may_alias __attribute__((__may_alias__))
|
||||
#define __printf_like(f, a) __attribute__((format (printf, f, a)))
|
||||
#define __used __attribute__((used))
|
||||
|
||||
#define __used __attribute__((__used__))
|
||||
#define ARG_UNUSED(x) (void)(x)
|
||||
|
||||
#define likely(x) __builtin_expect((long)!!(x), 1L)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue