Page 1 of 1

esp_wifi_types.h

Posted: Sun Apr 23, 2017 7:46 pm
by joakuim
In my opinion the line
..~.
#include "esp_wifi_types.h"
...
is not needed.
Although it is not "executed" because of
...
#ifndef __ESP_WIFI_TYPES_H__
#define __ESP_WIFI_TYPES_H__
...

Re: esp_wifi_types.h

Posted: Sun Apr 23, 2017 11:53 pm
by ESP_Angus
I think there might be some context missing in this bug report. Are you looking at a particular C file that includes this header?

The #ifndef/#define guard prevents the header from being included twice (for example when included recursively from two different headers.)

Re: esp_wifi_types.h

Posted: Mon Apr 24, 2017 4:28 am
by ESP_igrr
I think what the OP is saying is that esp_wifi_types.h file has #include "esp_wifi_types.h" inside. Which is indeed not needed.

Re: esp_wifi_types.h

Posted: Mon Apr 24, 2017 11:34 pm
by joakuim
Indeed ESP_igrr is right.
What I intended to say is this: in file es_wifi_types.h the line #include "esp_wifi_types.h" is not needed.
Not a "real" bug!