diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index ad076cd42b..783b1940d6 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -13,11 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#ifdef RGBLIGHT_SPLIT_ANIMATION
- #ifndef RGBLIGHT_SPLIT
- #define RGBLIGHT_SPLIT
- #endif
-#endif
#include
#include
#ifdef __AVR__
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index aeff2cb1d7..5c8b987df5 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -16,6 +16,12 @@
#ifndef RGBLIGHT_H
#define RGBLIGHT_H
+#ifdef RGBLIGHT_SPLIT_ANIMATION
+ #ifndef RGBLIGHT_SPLIT
+ #define RGBLIGHT_SPLIT
+ #endif
+#endif
+
#include "rgblight_reconfig.h"
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****