From 17bd6e8faba15812780d21e6e3db08fb26dd7033 Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Sat, 21 Dec 2019 12:12:54 +1100 Subject: [PATCH] Add missing extern "C" to rtc_cntl.h Related: https://github.com/espressif/arduino-esp32/issues/3149 --- components/driver/include/driver/rtc_cntl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/driver/include/driver/rtc_cntl.h b/components/driver/include/driver/rtc_cntl.h index a79745713e..44fd015096 100644 --- a/components/driver/include/driver/rtc_cntl.h +++ b/components/driver/include/driver/rtc_cntl.h @@ -18,6 +18,10 @@ #include "esp_err.h" #include "esp_intr_alloc.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Register a handler for specific RTC_CNTL interrupts * @@ -46,3 +50,7 @@ esp_err_t rtc_isr_register(intr_handler_t handler, void* handler_arg, * handler_arg isn't registered */ esp_err_t rtc_isr_deregister(intr_handler_t handler, void* handler_arg); + +#ifdef __cplusplus +} +#endif