From: Christian Lamparter Date: Thu, 1 Jan 2015 16:34:17 +0000 (+0100) Subject: carl9170 tools: add attribute macros to host library file X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=786812b3a629e8b8b42c176df9a4d243218de179 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 --- 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"