mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
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
This commit is contained in:
committed by
Roland Dobai
parent
417cac6654
commit
051b5c45c5
@@ -1,6 +1,7 @@
|
|||||||
//Do not edit this file because it is autogenerated by gen_esp_err_to_name.py
|
//Do not edit this file because it is autogenerated by gen_esp_err_to_name.py
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "esp_err.h"
|
||||||
#if __has_include("soc/soc.h")
|
#if __has_include("soc/soc.h")
|
||||||
#include "soc/soc.h"
|
#include "soc/soc.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
@COMMENT@
|
@COMMENT@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "esp_err.h"
|
||||||
#if __has_include("soc/soc.h")
|
#if __has_include("soc/soc.h")
|
||||||
#include "soc/soc.h"
|
#include "soc/soc.h"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user