浏览代码

Wrapped process_leader.c in #ifndef DISABLE_LEADER to allow compilation with DISABLE_LEADER defined.

Martin Sandiford 8 年之前
父节点
当前提交
4757140107
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      quantum/process_keycode/process_leader.c

+ 4 - 0
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