diff --git a/keyboards/zsa/ergodox_ez/ergodox_ez.h b/keyboards/zsa/ergodox_ez/ergodox_ez.h
index 338c97c5f73f..3745e1b52620 100644
--- a/keyboards/zsa/ergodox_ez/ergodox_ez.h
+++ b/keyboards/zsa/ergodox_ez/ergodox_ez.h
@@ -20,7 +20,7 @@ along with this program. If not, see .
#pragma once
-#include "quantum.h"
+#include QMK_KEYBOARD_H
#include
#include
#include "i2c_master.h"
diff --git a/keyboards/zsa/moonlander/moonlander.c b/keyboards/zsa/moonlander/moonlander.c
index 174359323582..6e844f677a97 100644
--- a/keyboards/zsa/moonlander/moonlander.c
+++ b/keyboards/zsa/moonlander/moonlander.c
@@ -16,6 +16,7 @@
* along with this program. If not, see .
*/
+#include QMK_KEYBOARD_H
#include "moonlander.h"
keyboard_config_t keyboard_config;