aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormtei <2170248+mtei@users.noreply.github.com>2019-01-10 12:04:01 +0900
committerDrashna Jaelre <drashna@live.com>2019-01-25 13:38:12 -0800
commit2e8b32b9b5434c6cee011ef953f3ad3ec8a099e7 (patch)
tree6ecf6ce637de16989672b8de78042e7366e8f6b5
parent79b58937f41413f52ffc7b6af2149dca7a632b73 (diff)
downloadqmk_firmware-2e8b32b9b5434c6cee011ef953f3ad3ec8a099e7.tar.gz
qmk_firmware-2e8b32b9b5434c6cee011ef953f3ad3ec8a099e7.zip
move `#include "rgb.h"` from quantum.h to quantum.c
I think `quantum.h` should contain only API declarations that `quantum.c` provides externally. `rgb.h` contains function weak definitions. This should not be in `quantum.h`.
-rw-r--r--quantum/quantum.c5
-rw-r--r--quantum/quantum.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 85db100ab..5d8ffe34e 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -15,6 +15,11 @@
15 */ 15 */
16 16
17#include "quantum.h" 17#include "quantum.h"
18
19#if !defined(RGBLIGHT_ENABLE) && !defined(RGB_MATRIX_ENABLE)
20 #include "rgb.h"
21#endif
22
18#ifdef PROTOCOL_LUFA 23#ifdef PROTOCOL_LUFA
19#include "outputselect.h" 24#include "outputselect.h"
20#endif 25#endif
diff --git a/quantum/quantum.h b/quantum/quantum.h
index f78915fdf..56a6a1a99 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -30,9 +30,6 @@
30#ifdef BACKLIGHT_ENABLE 30#ifdef BACKLIGHT_ENABLE
31 #include "backlight.h" 31 #include "backlight.h"
32#endif 32#endif
33#if !defined(RGBLIGHT_ENABLE) && !defined(RGB_MATRIX_ENABLE)
34 #include "rgb.h"
35#endif
36#ifdef RGBLIGHT_ENABLE 33#ifdef RGBLIGHT_ENABLE
37 #include "rgblight.h" 34 #include "rgblight.h"
38#else 35#else