From 5f0e213d9d9c9ea42cbc6ac23f29b160ee35dc56 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Fri, 12 Nov 2021 09:17:02 -0300 Subject: [PATCH] efuse: Enable C++ linkage for the include headers on esp_efuse.h Signed-off-by: Gustavo Henrique Nihei --- components/efuse/include/esp_efuse.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/efuse/include/esp_efuse.h b/components/efuse/include/esp_efuse.h index 91482d5504..17b744ff63 100644 --- a/components/efuse/include/esp_efuse.h +++ b/components/efuse/include/esp_efuse.h @@ -6,12 +6,9 @@ #pragma once -#ifdef __cplusplus -extern "C" { -#endif - #include #include + #include "esp_err.h" #include "esp_log.h" #include "soc/soc_caps.h" @@ -32,6 +29,10 @@ extern "C" { #include "esp8684/rom/secure_boot.h" #endif +#ifdef __cplusplus +extern "C" { +#endif + #define ESP_ERR_EFUSE 0x1600 /*!< Base error code for efuse api. */ #define ESP_OK_EFUSE_CNT (ESP_ERR_EFUSE + 0x01) /*!< OK the required number of bits is set. */ #define ESP_ERR_EFUSE_CNT_IS_FULL (ESP_ERR_EFUSE + 0x02) /*!< Error field is full. */