Przeglądaj źródła

[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 <jakob.hasse@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/6634
William Ferguson 4 lat temu
rodzic
commit
13b0633e8d

+ 1 - 1
components/driver/esp32s2beta/include/touch_sensor.h

@@ -454,4 +454,4 @@ esp_err_t touch_pad_sleep_channel_read_proximity_cnt(uint32_t *proximity_cnt);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 4 - 4
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 <stdint.h>
 #include "esp_err.h"
 #include "driver/adc.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * @brief Type of calibration value used in characterization
  */