From 8bb0f299589ea90c2755252034d310bf715884f3 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 23 May 2022 23:58:16 +0200 Subject: [PATCH] add missing c++ guard --- cores/esp32/esp32-hal-misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cores/esp32/esp32-hal-misc.h b/cores/esp32/esp32-hal-misc.h index abb0e3a0..2363b8cd 100644 --- a/cores/esp32/esp32-hal-misc.h +++ b/cores/esp32/esp32-hal-misc.h @@ -2,7 +2,15 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + void yield(void); unsigned long micros(); void delayMicroseconds(uint32_t us); + +#ifdef __cplusplus +} +#endif