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/audio | |
parent | fa24b0fcce2c5f3330f2d798c3caf91a130babdb (diff) | |
download | qmk_firmware-955809bd5aee8b1444595b450eeeef1f42799995.tar.gz qmk_firmware-955809bd5aee8b1444595b450eeeef1f42799995.zip |
Add `compiler_support.h` (#25274)
Diffstat (limited to 'quantum/audio')
-rw-r--r-- | quantum/audio/audio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h index 93dc6f62b1..647744a686 100644 --- a/quantum/audio/audio.h +++ b/quantum/audio/audio.h @@ -18,6 +18,8 @@ #include <stdint.h> #include <stdbool.h> + +#include "compiler_support.h" #include "musical_notes.h" #include "song_list.h" #include "voices.h" @@ -38,7 +40,7 @@ typedef union audio_config_t { }; } audio_config_t; -_Static_assert(sizeof(audio_config_t) == sizeof(uint8_t), "Audio EECONFIG out of spec."); +STATIC_ASSERT(sizeof(audio_config_t) == sizeof(uint8_t), "Audio EECONFIG out of spec."); /* * a 'musical note' is represented by pitch and duration; a 'musical tone' adds intensity and timbre |