summaryrefslogtreecommitdiff
path: root/include/text.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-07-18 20:46:00 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-07-18 20:46:00 -0400
commit20863ac85bcf047feeeba8295d0f9bcecef6f636 (patch)
treeefc58685cb556334f83733b085e27b9f92a5c0db /include/text.h
parent7fd327d63279bb01492da57be6d6091be435d19c (diff)
Resolve compile warnings in modern
Diffstat (limited to 'include/text.h')
-rw-r--r--include/text.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/text.h b/include/text.h
index eba3d0c4e..d3ff663bb 100644
--- a/include/text.h
+++ b/include/text.h
@@ -166,7 +166,11 @@ struct TextPrinter
void (*callback)(struct TextPrinterTemplate *, u16); // 0x10
- union __attribute__((packed)) {
+ union
+#if !MODERN
+ __attribute__((packed))
+#endif
+ {
struct TextPrinterSubStruct sub;
u8 fields[7];
} subUnion;