Generalize Unicode defines (#15409)

This commit is contained in:
Drashna Jaelre 2021-12-06 09:38:36 -08:00 committed by GitHub
parent e8747e116f
commit 942b3cf16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -604,6 +604,7 @@ ifeq ($(strip $(UNICODE_ENABLE)), yes)
endif endif
ifeq ($(strip $(UNICODE_COMMON)), yes) ifeq ($(strip $(UNICODE_COMMON)), yes)
OPT_DEFS += -DUNICODE_COMMON_ENABLE
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
endif endif

View File

@ -263,7 +263,7 @@ bool process_record_quantum(keyrecord_t *record) {
#ifdef TAP_DANCE_ENABLE #ifdef TAP_DANCE_ENABLE
process_tap_dance(keycode, record) && process_tap_dance(keycode, record) &&
#endif #endif
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE) #if defined(UNICODE_COMMON_ENABLE)
process_unicode_common(keycode, record) && process_unicode_common(keycode, record) &&
#endif #endif
#ifdef LEADER_ENABLE #ifdef LEADER_ENABLE
@ -387,7 +387,7 @@ void matrix_init_quantum() {
#ifdef RGB_MATRIX_ENABLE #ifdef RGB_MATRIX_ENABLE
rgb_matrix_init(); rgb_matrix_init();
#endif #endif
#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE) #if defined(UNICODE_COMMON_ENABLE)
unicode_input_mode_init(); unicode_input_mode_init();
#endif #endif
#ifdef HAPTIC_ENABLE #ifdef HAPTIC_ENABLE