From 048fd8045020c6b3180c8cd96672eb7fe68494c6 Mon Sep 17 00:00:00 2001 From: Elvis Dukaj Date: Sun, 26 Apr 2020 13:42:54 +0200 Subject: [PATCH] ble_hid_device_demo: fix build if building with c++ Signed-off-by: Elvis Dukaj Signed-off-by: liminyang Merges https://github.com/espressif/esp-idf/pull/5191 --- examples/bluetooth/ble_hid_device_demo/main/hid_dev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/bluetooth/ble_hid_device_demo/main/hid_dev.h b/examples/bluetooth/ble_hid_device_demo/main/hid_dev.h index 17b406b79..9954a8344 100644 --- a/examples/bluetooth/ble_hid_device_demo/main/hid_dev.h +++ b/examples/bluetooth/ble_hid_device_demo/main/hid_dev.h @@ -253,5 +253,9 @@ void hid_keyboard_build_report(uint8_t *buffer, keyboard_cmd_t cmd); void hid_mouse_build_report(uint8_t *buffer, mouse_cmd_t cmd); +#ifdef __cplusplus +} // extern "C" +#endif + #endif /* HID_DEV_H__ */