Closed
Description
there's something about this header file that crashes the preprocessor, probably indicates some more general purpose bug. reproduce by:
- add
http://arduino.esp8266.com/stable/package_esp8266com_index.json
to board manager prefs - use board manager to install ESP8266 support
- try to compile this sketch
#include "ESP8266WiFi.h"
void setup() {}
void loop() { hello(); }
void hello(void) {}
- will fail due to not having auto-generated prototype for hello()
- now put
#include "ESP8266WiFi.h"
on last line, recompile - works now because while it does crash on the #include, its after the prototypes are made (?)
Also mentioned @ esp8266/Arduino#1066