summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorMartin Sandiford <ms@mcdev.com.au>2017-08-15 03:11:21 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-16 01:51:06 +0200
commit4757140107ba702a75fa36ca379a7b5335ee9d0b (patch)
treec77c58e8fa098650fb8cfdc67a0da2d12db1c6f1 /quantum/process_keycode
parentc6224236682c2ac40ccfe752c57fd3ec4905757f (diff)
downloadqmk_firmware-4757140107ba702a75fa36ca379a7b5335ee9d0b.tar.gz
qmk_firmware-4757140107ba702a75fa36ca379a7b5335ee9d0b.tar.xz
Wrapped process_leader.c in #ifndef DISABLE_LEADER to allow compilation with DISABLE_LEADER defined.
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_leader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_leader.c b/quantum/process_keycode/process_leader.c
index 473906d65..e0fe47654 100644
--- a/quantum/process_keycode/process_leader.c
+++ b/quantum/process_keycode/process_leader.c
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef DISABLE_LEADER
+
#include "process_leader.h"
__attribute__ ((weak))
@@ -52,3 +54,5 @@ bool process_leader(uint16_t keycode, keyrecord_t *record) {
}
return true;
}
+
+#endif