From: Bin Meng Date: Sun, 27 Oct 2019 12:19:44 +0000 (-0700) Subject: tools: ifwitool: Define __packed when it is not defined X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ccd4398fa71e305158ec53f4cd5b1f7fad27caaf;p=u-boot.git tools: ifwitool: Define __packed when it is not defined Some compilers may provide __packed define for us. Signed-off-by: Bin Meng --- diff --git a/tools/ifwitool.c b/tools/ifwitool.c index 2e020a8282..543e9d4e70 100644 --- a/tools/ifwitool.c +++ b/tools/ifwitool.c @@ -10,7 +10,9 @@ #include #include "os_support.h" +#ifndef __packed #define __packed __attribute__((packed)) +#endif #define KiB 1024 #define ALIGN(x, a) __ALIGN_MASK((x), (typeof(x))(a) - 1) #define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))