diff options
author | Pablo MartÃnez <[email protected]> | 2025-05-22 15:31:15 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2025-05-22 23:31:15 +1000 |
commit | 955809bd5aee8b1444595b450eeeef1f42799995 (patch) | |
tree | 08da1f696605925286f681a2b738fa5f35cd0386 /quantum/rgblight | |
parent | fa24b0fcce2c5f3330f2d798c3caf91a130babdb (diff) | |
download | qmk_firmware-955809bd5aee8b1444595b450eeeef1f42799995.tar.gz qmk_firmware-955809bd5aee8b1444595b450eeeef1f42799995.zip |
Add `compiler_support.h` (#25274)
Diffstat (limited to 'quantum/rgblight')
-rw-r--r-- | quantum/rgblight/rgblight.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/rgblight/rgblight.h b/quantum/rgblight/rgblight.h index f5fd450d4c..c061e71895 100644 --- a/quantum/rgblight/rgblight.h +++ b/quantum/rgblight/rgblight.h @@ -16,6 +16,8 @@ #pragma once +#include "compiler_support.h" + // DEPRECATED DEFINES - DO NOT USE #if defined(RGBLED_NUM) # define RGBLIGHT_LED_COUNT RGBLED_NUM @@ -260,7 +262,7 @@ typedef union rgblight_config_t { }; } rgblight_config_t; -_Static_assert(sizeof(rgblight_config_t) == sizeof(uint64_t), "RGB Light EECONFIG out of spec."); +STATIC_ASSERT(sizeof(rgblight_config_t) == sizeof(uint64_t), "RGB Light EECONFIG out of spec."); typedef struct _rgblight_status_t { uint8_t base_mode; |