From da3e3b5e285b93da1e9f4bf3a3ad55f20bb6f8fd Mon Sep 17 00:00:00 2001 From: William Ferguson Date: Mon, 1 Mar 2021 09:21:44 +1000 Subject: [PATCH] [cxx]: fixed extern "C" declarations * Moving #includes above #ifdef __cplusplus extern "C" { #endif So that we can compile with CPP. Signed-off-by: Jakob Hasse Merges https://github.com/espressif/esp-idf/pull/6634 --- components/esp_adc_cal/include/esp_adc_cal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esp_adc_cal/include/esp_adc_cal.h b/components/esp_adc_cal/include/esp_adc_cal.h index b1798847bd..b5a869e28a 100644 --- a/components/esp_adc_cal/include/esp_adc_cal.h +++ b/components/esp_adc_cal/include/esp_adc_cal.h @@ -15,14 +15,14 @@ #ifndef __ESP_ADC_CAL_H__ #define __ESP_ADC_CAL_H__ -#ifdef __cplusplus -extern "C" { -#endif - #include #include "esp_err.h" #include "driver/adc.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Type of calibration value used in characterization */