diff --git a/features/autocorrection.h b/features/autocorrection.h index e965756..efa2ee9 100644 --- a/features/autocorrection.h +++ b/features/autocorrection.h @@ -26,5 +26,13 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + bool process_autocorrection(uint16_t keycode, keyrecord_t* record); +#ifdef __cplusplus +} +#endif + diff --git a/features/caps_word.h b/features/caps_word.h index c900b5d..adec54f 100644 --- a/features/caps_word.h +++ b/features/caps_word.h @@ -46,6 +46,10 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + // Call this function from `process_record_user()` to implement Caps Word. bool process_caps_word(uint16_t keycode, keyrecord_t* record); @@ -126,3 +130,7 @@ void caps_word_set_user(bool active); // deactivate Caps Word. bool caps_word_press_user(uint16_t keycode); +#ifdef __cplusplus +} +#endif + diff --git a/features/custom_shift_keys.h b/features/custom_shift_keys.h index 42a228a..3b9aeda 100644 --- a/features/custom_shift_keys.h +++ b/features/custom_shift_keys.h @@ -54,6 +54,10 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { uint16_t keycode; uint16_t shifted_keycode; @@ -64,3 +68,7 @@ extern uint8_t NUM_CUSTOM_SHIFT_KEYS; bool process_custom_shift_keys(uint16_t keycode, keyrecord_t *record); +#ifdef __cplusplus +} +#endif + diff --git a/features/layer_lock.h b/features/layer_lock.h index a204950..ee57e42 100644 --- a/features/layer_lock.h +++ b/features/layer_lock.h @@ -42,6 +42,10 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + // In your keymap, define a custom keycode to use for Layer Lock. Then handle // Layer Lock from your `process_record_user` function by calling // `process_layer_lock`, passing your custom keycode for the `lock_keycode` arg: @@ -78,3 +82,7 @@ void layer_lock_invert(uint8_t layer); // } void layer_lock_set_user(layer_state_t locked_layers); +#ifdef __cplusplus +} +#endif + diff --git a/features/mouse_turbo_click.h b/features/mouse_turbo_click.h index 9345c8d..c81bfa8 100644 --- a/features/mouse_turbo_click.h +++ b/features/mouse_turbo_click.h @@ -35,6 +35,10 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + // In your keymap, define a custom keycode to use for Turbo Click. Then handle // Turbo Click from your `process_record_user` function by calling // `process_mouse_turbo_click`, passing your custom keycode for the @@ -51,3 +55,7 @@ bool process_mouse_turbo_click(uint16_t keycode, keyrecord_t* record, uint16_t turbo_click_keycode); +#ifdef __cplusplus +} +#endif + diff --git a/features/select_word.h b/features/select_word.h index 4f504a5..f1229a1 100644 --- a/features/select_word.h +++ b/features/select_word.h @@ -33,6 +33,14 @@ #include "quantum.h" +#ifdef __cplusplus +extern "C" { +#endif + bool process_select_word(uint16_t keycode, keyrecord_t* record, uint16_t sel_keycode); +#ifdef __cplusplus +} +#endif +