فهرست منبع

Fix typo with sigmadelta.h #ifdef

dowster 5 سال پیش
والد
کامیت
6a448bd030
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      components/driver/include/driver/sigmadelta.h

+ 2 - 2
components/driver/include/driver/sigmadelta.h

@@ -19,7 +19,7 @@
 #include "soc/gpio_sd_reg.h"
 #include "driver/gpio.h"
 
-#ifdef _cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -102,7 +102,7 @@ esp_err_t sigmadelta_set_prescale(sigmadelta_channel_t channel, uint8_t prescale
  */
 esp_err_t sigmadelta_set_pin(sigmadelta_channel_t channel, gpio_num_t gpio_num);
 
-#ifdef _cplusplus
+#ifdef __cplusplus
 }
 #endif