From 5d64e8a26388e2abbf6a6585d17392d6e944ae7b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 Jul 2023 00:38:51 +0200 Subject: Merging upstream version 2.5. Signed-off-by: Daniel Baumann --- common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 6a904e1..b5594e9 100644 --- a/common.h +++ b/common.h @@ -11,6 +11,11 @@ #define min(x, y) ((x) > (y) ? (y) : (x)) #define max(x, y) ((x) > (y) ? (x) : (y)) +#ifdef __packed +#else /* __packed */ +#define __packed __attribute__((__packed__)) +#endif /* __packed */ + static inline uint32_t mmio_read32(void *addr) { leint32_t *p = addr; -- cgit v1.2.3