From 051b5c45c5284b891d0d7256da7ba0b46163d222 Mon Sep 17 00:00:00 2001 From: Hagen Fritsch Date: Sat, 4 May 2019 15:16:15 +0200 Subject: [PATCH] Fix includes in esp_err_to_name.c.in. esp_err_t provided by esp_err.h and thus is required and not optional. While the python script adds the header, it wraps it with an __has_include directive that is not supported on all compilers (notably GCC 4.8). Closes https://github.com/espressif/esp-idf/pull/3424 --- components/esp_common/src/esp_err_to_name.c | 1 + components/esp_common/src/esp_err_to_name.c.in | 1 + 2 files changed, 2 insertions(+) diff --git a/components/esp_common/src/esp_err_to_name.c b/components/esp_common/src/esp_err_to_name.c index 2f33b3ab9..1440eabb7 100644 --- a/components/esp_common/src/esp_err_to_name.c +++ b/components/esp_common/src/esp_err_to_name.c @@ -1,6 +1,7 @@ //Do not edit this file because it is autogenerated by gen_esp_err_to_name.py #include +#include "esp_err.h" #if __has_include("soc/soc.h") #include "soc/soc.h" #endif diff --git a/components/esp_common/src/esp_err_to_name.c.in b/components/esp_common/src/esp_err_to_name.c.in index 5f623c62d..b9db3a05e 100644 --- a/components/esp_common/src/esp_err_to_name.c.in +++ b/components/esp_common/src/esp_err_to_name.c.in @@ -1,6 +1,7 @@ @COMMENT@ #include +#include "esp_err.h" #if __has_include("soc/soc.h") #include "soc/soc.h" #endif