carl9170: Update based on commit 467556acea56f361a21b2a3761ca056b9da2d237 dated Nov...
[linux-libre-firmware.git] / carl9170fw / tools / lib / carlfw.h
index 6e722c944cf7e4266b6902a7c9d729d6dfd101d7..1207e70bfec3a991a1dab8e910b2afc4ccfe0430 100644 (file)
 #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 <linux/types.h>
 #include "compiler.h"
 #include "fwdesc.h"