Move PACKED
define to util.h (#22074)
This commit is contained in:
parent
7bfd775a5c
commit
2aacda3235
4 changed files with 7 additions and 42 deletions
|
@ -19,16 +19,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "color.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(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
|
||||
# define RGB_MATRIX_KEYREACTIVE_ENABLED
|
||||
|
@ -94,7 +85,3 @@ typedef union {
|
|||
} rgb_config_t;
|
||||
|
||||
_Static_assert(sizeof(rgb_config_t) == sizeof(uint64_t), "RGB Matrix EECONFIG out of spec.");
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma pack(pop)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue