aboutsummaryrefslogtreecommitdiff
path: root/quantum/util.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-09-20 16:33:54 +1000
committerGitHub <noreply@github.com>2023-09-20 07:33:54 +0100
commit2aacda32358bfda5fccbfb1e6f4f906c5efa702d (patch)
tree803dca1d52b1140e94c53424616a9289da800f3d /quantum/util.h
parent7bfd775a5c32942f9cdc65a2779920bc784c1549 (diff)
Move `PACKED` define to util.h (#22074)
Diffstat (limited to 'quantum/util.h')
-rw-r--r--quantum/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/util.h b/quantum/util.h
index 9c034cc404..21e3487b28 100644
--- a/quantum/util.h
+++ b/quantum/util.h
@@ -46,3 +46,7 @@
*/
# define ARRAY_SIZE(array) (__builtin_choose_expr(IS_ARRAY((array)), sizeof((array)) / sizeof((array)[0]), (void)0))
#endif
+
+#if !defined(PACKED)
+# define PACKED __attribute__((__packed__))
+#endif