X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Flib%2Fcarlfw.h;h=1207e70bfec3a991a1dab8e910b2afc4ccfe0430;hb=786812b3a629e8b8b42c176df9a4d243218de179;hp=6e722c944cf7e4266b6902a7c9d729d6dfd101d7;hpb=1765258283f5fc36987ae44cdd516163290629e0;p=carl9170fw.git 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"