From 6bb5a93221c4a4a74d0e4fea719ce35493630749 Mon Sep 17 00:00:00 2001 From: snake Date: Fri, 23 Sep 2016 14:54:30 +0800 Subject: [PATCH] add 'extern C' in header files --- components/bt/include/bt.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/bt/include/bt.h b/components/bt/include/bt.h index f8b7a8a0fd..8511aabdf8 100644 --- a/components/bt/include/bt.h +++ b/components/bt/include/bt.h @@ -18,6 +18,11 @@ #include "freertos/FreeRTOS.h" #include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif + + typedef void (* bt_app_startup_cb_t)(void *param); esp_err_t esp_bt_startup(bt_app_startup_cb_t cb, void *ctx); @@ -54,4 +59,8 @@ void API_vhci_host_send_packet(uint8_t *data, uint16_t len); */ void API_vhci_host_register_callback(const vhci_host_callback_t *callback); +#ifdef __cplusplus +} +#endif + #endif /* __BT_H__ */