From 786812b3a629e8b8b42c176df9a4d243218de179 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Thu, 1 Jan 2015 17:34:17 +0100 Subject: [PATCH] carl9170 tools: add attribute macros to host library file The macros [__packed, __aligned(x), ...] are already defined as part of newlib's sys/cdefs.h. However they are not part of standard libc which is used to compile the host tools. Signed-off-by: Christian Lamparter --- tools/lib/carlfw.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/lib/carlfw.h b/tools/lib/carlfw.h index 6e722c9..1207e70 100644 --- a/tools/lib/carlfw.h +++ b/tools/lib/carlfw.h @@ -18,6 +18,14 @@ #ifndef __CARLFW_H #define __CARLFW_H +/* These macros are already defined as part of newlib's sys/cdefs.h. + * However they are not part of standard libc which is used to compile + * the host tools. For now, simply add them here. + */ +#define __packed __attribute__((packed)) +#define __unused __attribute__((unused)) +#define __aligned(x) __attribute__((aligned(x))) + #include #include "compiler.h" #include "fwdesc.h" -- 2.31.1