Przeglądaj źródła

esp_idf_version.h: Add __ASSEMBLER__ flag to fix build failure with assembly files

Shubham Kulkarni 5 lat temu
rodzic
commit
bcdc8ac28f
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      components/esp_common/include/esp_idf_version.h

+ 4 - 0
components/esp_common/include/esp_idf_version.h

@@ -41,6 +41,8 @@ extern "C" {
                                              ESP_IDF_VERSION_MINOR, \
                                              ESP_IDF_VERSION_PATCH)
 
+#ifndef __ASSEMBLER__
+
 /**
  * Return full IDF version string, same as 'git describe' output.
  *
@@ -53,6 +55,8 @@ extern "C" {
  */
 const char* esp_get_idf_version(void);
 
+#endif
+
 #ifdef __cplusplus
 }
 #endif