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
pull/3456/head
Hagen Fritsch 2019-05-04 15:16:15 +02:00 zatwierdzone przez Roland Dobai
rodzic 417cac6654
commit 051b5c45c5
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
//Do not edit this file because it is autogenerated by gen_esp_err_to_name.py
#include <string.h>
#include "esp_err.h"
#if __has_include("soc/soc.h")
#include "soc/soc.h"
#endif

Wyświetl plik

@ -1,6 +1,7 @@
@COMMENT@
#include <string.h>
#include "esp_err.h"
#if __has_include("soc/soc.h")
#include "soc/soc.h"
#endif