diff --git a/esp3d/src/core/esp3doutput.h b/esp3d/src/core/esp3doutput.h index fcce2d0e..a2703089 100644 --- a/esp3d/src/core/esp3doutput.h +++ b/esp3d/src/core/esp3doutput.h @@ -40,7 +40,7 @@ class WebServer; #define WEBSERVER WebServer #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include #define WEBSERVER ESP8266WebServer #endif //ARDUINO_ARCH_ESP8266 #endif //HTTP_FEATURE diff --git a/esp3d/src/modules/authentication/authentication_service.h b/esp3d/src/modules/authentication/authentication_service.h index a1ceef39..7ec2f575 100644 --- a/esp3d/src/modules/authentication/authentication_service.h +++ b/esp3d/src/modules/authentication/authentication_service.h @@ -48,7 +48,7 @@ class WebServer; typedef WebServer Authwebserver; #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include typedef ESP8266WebServer Authwebserver; #endif //ARDUINO_ARCH_ESP8266 #else diff --git a/esp3d/src/modules/http/http_server.h b/esp3d/src/modules/http/http_server.h index bd0a7532..647f185c 100644 --- a/esp3d/src/modules/http/http_server.h +++ b/esp3d/src/modules/http/http_server.h @@ -28,7 +28,7 @@ class WebServer; #define WEBSERVER WebServer #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include #define WEBSERVER ESP8266WebServer #endif //ARDUINO_ARCH_ESP8266