diff options
author | Ryan <[email protected]> | 2023-09-20 16:33:54 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-20 07:33:54 +0100 |
commit | 2aacda32358bfda5fccbfb1e6f4f906c5efa702d (patch) | |
tree | 803dca1d52b1140e94c53424616a9289da800f3d /quantum/led_matrix | |
parent | 7bfd775a5c32942f9cdc65a2779920bc784c1549 (diff) | |
download | qmk_firmware-2aacda32358bfda5fccbfb1e6f4f906c5efa702d.tar.gz qmk_firmware-2aacda32358bfda5fccbfb1e6f4f906c5efa702d.zip |
Move `PACKED` define to util.h (#22074)
Diffstat (limited to 'quantum/led_matrix')
-rw-r--r-- | quantum/led_matrix/led_matrix_types.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/quantum/led_matrix/led_matrix_types.h b/quantum/led_matrix/led_matrix_types.h index 6709a558bb..5a516ceb10 100644 --- a/quantum/led_matrix/led_matrix_types.h +++ b/quantum/led_matrix/led_matrix_types.h @@ -18,16 +18,7 @@ #include <stdint.h> #include <stdbool.h> - -#if defined(__GNUC__) -# define PACKED __attribute__((__packed__)) -#else -# define PACKED -#endif - -#if defined(_MSC_VER) -# pragma pack(push, 1) -#endif +#include "util.h" #if defined(LED_MATRIX_KEYPRESSES) || defined(LED_MATRIX_KEYRELEASES) # define LED_MATRIX_KEYREACTIVE_ENABLED @@ -92,7 +83,3 @@ typedef union { } led_eeconfig_t; _Static_assert(sizeof(led_eeconfig_t) == sizeof(uint32_t), "LED Matrix EECONFIG out of spec."); - -#if defined(_MSC_VER) -# pragma pack(pop) -#endif |