projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10289b4
)
tools: ifwitool: Define __packed when it is not defined
author
Bin Meng
<bmeng.cn@gmail.com>
Sun, 27 Oct 2019 12:19:44 +0000
(
05:19
-0700)
committer
Tom Rini
<trini@konsulko.com>
Mon, 28 Oct 2019 17:32:51 +0000
(13:32 -0400)
Some compilers may provide __packed define for us.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
tools/ifwitool.c
patch
|
blob
|
history
diff --git
a/tools/ifwitool.c
b/tools/ifwitool.c
index 2e020a82824fd9fd6cafb4441a5ebeee2cdf6815..543e9d4e702665c0d105adcc6ee7a6112054fac0 100644
(file)
--- a/
tools/ifwitool.c
+++ b/
tools/ifwitool.c
@@
-10,7
+10,9
@@
#include <getopt.h>
#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))