[cxx]: fixed extern "C" declarations (backport 4.1) See merge request espressif/esp-idf!12743
@@ -454,4 +454,4 @@ esp_err_t touch_pad_sleep_channel_read_proximity_cnt(uint32_t *proximity_cnt);
#ifdef __cplusplus
}
-#endif
+#endif
@@ -15,14 +15,14 @@
#ifndef __ESP_ADC_CAL_H__
#define __ESP_ADC_CAL_H__
-#ifdef __cplusplus
-extern "C" {
-
#include <stdint.h>
#include "esp_err.h"
#include "driver/adc.h"
+#ifdef __cplusplus
+extern "C" {
+
/**
* @brief Type of calibration value used in characterization
*/