From 2aef65c3fc22936ddbeb8615b631301e3e7a5030 Mon Sep 17 00:00:00 2001 From: elpekenin Date: Thu, 22 May 2025 16:21:32 +0200 Subject: [PATCH] use `STATIC_ASSERT` --- quantum/action_util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quantum/action_util.h b/quantum/action_util.h index c9d27ef92dc..8b1974cd321 100644 --- a/quantum/action_util.h +++ b/quantum/action_util.h @@ -18,6 +18,8 @@ along with this program. If not, see . #pragma once #include + +#include "compiler_support.h" #include "report.h" #include "modifiers.h" @@ -38,7 +40,7 @@ typedef union { bool right_gui : 1; }; } PACKED mod_t; -_Static_assert(sizeof(mod_t) == sizeof(uint8_t), "Invalid size for 'mod_t'"); +STATIC_ASSERT(sizeof(mod_t) == sizeof(uint8_t), "Invalid size for 'mod_t'"); extern report_keyboard_t *keyboard_report; #ifdef NKRO_ENABLE