From 5a287c3a3107ae467bcf2c1a8c76ec3e665b1d70 Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Thu, 15 Oct 2020 19:24:57 +0530 Subject: [PATCH] esp_idf_version.h: Add __ASSEMBLER__ flag to fix build failure with assembly files --- components/esp32/include/esp_idf_version.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp32/include/esp_idf_version.h b/components/esp32/include/esp_idf_version.h index d77f86d7a..6b59e6b27 100644 --- a/components/esp32/include/esp_idf_version.h +++ b/components/esp32/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