From: Angus Gratton Date: Mon, 29 Jan 2018 01:22:04 +0000 (+0800) Subject: console: Add C++ guards to header X-Git-Tag: v3.1-beta1~440^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2536d50d2e001350a8512553289d3440d3d807a8;p=esp-idf console: Add C++ guards to header As reported on forum https://esp32.com/viewtopic.php?f=2&t=4478&p=19659 --- diff --git a/components/console/esp_console.h b/components/console/esp_console.h index bea7eee728..45a10b7a2e 100644 --- a/components/console/esp_console.h +++ b/components/console/esp_console.h @@ -13,6 +13,11 @@ // limitations under the License. #pragma once +#ifdef __cplusplus +extern "C" +{ +#endif + #include #include "esp_err.h" @@ -181,3 +186,7 @@ const char *esp_console_get_hint(const char *buf, int *color, int *bold); * - ESP_ERR_INVALID_STATE, if esp_console_init wasn't called */ esp_err_t esp_console_register_help_command(); + +#ifdef __cplusplus +} +#endif