X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Ftools%2Flib%2Fcarlfw.h;fp=carl9170fw%2Ftools%2Flib%2Fcarlfw.h;h=1207e70bfec3a991a1dab8e910b2afc4ccfe0430;hp=6e722c944cf7e4266b6902a7c9d729d6dfd101d7;hb=4d82a54061be75c0bf489026aad55821bc9c61c7;hpb=1ba1a88647bfe113c885f985d6e383790dec2a1f diff --git a/carl9170fw/tools/lib/carlfw.h b/carl9170fw/tools/lib/carlfw.h index 6e722c9..1207e70 100644 --- a/carl9170fw/tools/lib/carlfw.h +++ b/carl9170fw/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"