diff options
Diffstat (limited to 'quantum/util.h')
-rw-r--r-- | quantum/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/util.h b/quantum/util.h index 9c034cc404..94d9f22317 100644 --- a/quantum/util.h +++ b/quantum/util.h @@ -46,3 +46,11 @@ */ # 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 + +#if __has_include("_util.h") +# include "_util.h" /* Include the platform's _util.h */ +#endif |