aboutsummaryrefslogtreecommitdiffstats
path: root/lib/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/types.h')
-rw-r--r--lib/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/types.h b/lib/types.h
index 243997f..ab53f7c 100644
--- a/lib/types.h
+++ b/lib/types.h
@@ -75,7 +75,9 @@ typedef u32 pciaddr_t;
#if defined(__GNUC__) && __GNUC__ > 2
#define PCI_PRINTF(x,y) __attribute__((format(printf, x, y)))
#define PCI_NONRET __attribute((noreturn))
+#define PCI_PACKED __attribute((packed))
#else
#define PCI_PRINTF(x,y)
#define PCI_NONRET
+#define PCI_PACKED
#endif