diff options
| author | Ryan | 2023-09-20 08:33:54 +0200 |
|---|---|---|
| committer | GitHub | 2023-09-20 08:33:54 +0200 |
| commit | 2aacda32358bfda5fccbfb1e6f4f906c5efa702d (patch) | |
| tree | 803dca1d52b1140e94c53424616a9289da800f3d /quantum/util.h | |
| parent | 7bfd775a5c32942f9cdc65a2779920bc784c1549 (diff) | |
Move `PACKED` define to util.h (#22074)
Diffstat (limited to 'quantum/util.h')
| -rw-r--r-- | quantum/util.h | 4 |
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 |