aboutsummaryrefslogtreecommitdiff
path: root/quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h')
-rw-r--r--quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h b/quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h
index 41b76f1f65..78b8190eaf 100644
--- a/quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h
+++ b/quantum/nvm/eeprom/nvm_eeprom_eeconfig_internal.h
@@ -4,6 +4,8 @@
#include <stdint.h>
#include <stddef.h> // offsetof
+
+#include "compiler_support.h"
#include "eeconfig.h"
#include "util.h"
@@ -58,4 +60,4 @@ typedef struct PACKED {
// Size of EEPROM being used, other code can refer to this for available EEPROM
#define EECONFIG_SIZE ((EECONFIG_BASE_SIZE) + (EECONFIG_KB_DATA_SIZE) + (EECONFIG_USER_DATA_SIZE))
-_Static_assert((intptr_t)EECONFIG_HANDEDNESS == 14, "EEPROM handedness offset is incorrect");
+STATIC_ASSERT((intptr_t)EECONFIG_HANDEDNESS == 14, "EEPROM handedness offset is incorrect");