Compilation fixes for lib update

This commit is contained in:
Daniel Öster 2025-03-05 23:17:17 +02:00
parent 27c29867fe
commit 753142bd7c
6 changed files with 8 additions and 14 deletions

View file

@ -7,7 +7,7 @@
#include <Arduino.h> #include <Arduino.h>
#ifdef ESP32 #ifdef ESP32
#include <AsyncTCP.h> #include "../../ESP32Async-AsyncTCP/src/AsyncTCP.h"
#include <mutex> #include <mutex>
#ifndef SSE_MAX_QUEUED_MESSAGES #ifndef SSE_MAX_QUEUED_MESSAGES
#define SSE_MAX_QUEUED_MESSAGES 32 #define SSE_MAX_QUEUED_MESSAGES 32
@ -30,7 +30,7 @@
#define SSE_MAX_INFLIGH 16 * 1024 // but no more than 16k, no need to blow it, since same data is kept in local Q #define SSE_MAX_INFLIGH 16 * 1024 // but no more than 16k, no need to blow it, since same data is kept in local Q
#endif #endif
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#ifdef ESP8266 #ifdef ESP8266
#include <Hash.h> #include <Hash.h>

View file

@ -1,7 +1,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later // SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov // Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
AsyncWebHeader::AsyncWebHeader(const String &data) { AsyncWebHeader::AsyncWebHeader(const String &data) {
if (!data) { if (!data) {

View file

@ -6,7 +6,7 @@
#include <Arduino.h> #include <Arduino.h>
#ifdef ESP32 #ifdef ESP32
#include <AsyncTCP.h> #include "../../ESP32Async-AsyncTCP/src/AsyncTCP.h"
#include <mutex> #include <mutex>
#ifndef WS_MAX_QUEUED_MESSAGES #ifndef WS_MAX_QUEUED_MESSAGES
#define WS_MAX_QUEUED_MESSAGES 32 #define WS_MAX_QUEUED_MESSAGES 32
@ -23,7 +23,7 @@
#endif #endif
#endif #endif
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
#include <memory> #include <memory>

View file

@ -1,7 +1,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later // SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov // Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
#include <ChunkPrint.h> #include "ChunkPrint.h"
ChunkPrint::ChunkPrint(uint8_t *destination, size_t from, size_t len) : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {} ChunkPrint::ChunkPrint(uint8_t *destination, size_t from, size_t len) : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}

View file

@ -15,7 +15,7 @@
#include <vector> #include <vector>
#ifdef ESP32 #ifdef ESP32
#include <AsyncTCP.h> #include "../../ESP32Async-AsyncTCP/src/AsyncTCP.h"
#include <WiFi.h> #include <WiFi.h>
#elif defined(ESP8266) #elif defined(ESP8266)
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
@ -58,10 +58,6 @@ class AsyncCallbackWebHandler;
class AsyncResponseStream; class AsyncResponseStream;
class AsyncMiddlewareChain; class AsyncMiddlewareChain;
#if defined(TARGET_RP2040) || defined(TARGET_RP2350) || defined(PICO_RP2040) || defined(PICO_RP2350)
typedef enum http_method WebRequestMethod;
#else
#ifndef WEBSERVER_H
typedef enum { typedef enum {
HTTP_GET = 0b00000001, HTTP_GET = 0b00000001,
HTTP_POST = 0b00000010, HTTP_POST = 0b00000010,
@ -72,8 +68,6 @@ typedef enum {
HTTP_OPTIONS = 0b01000000, HTTP_OPTIONS = 0b01000000,
HTTP_ANY = 0b01111111, HTTP_ANY = 0b01111111,
} WebRequestMethod; } WebRequestMethod;
#endif
#endif
#ifndef HAVE_FS_FILE_OPEN_MODE #ifndef HAVE_FS_FILE_OPEN_MODE
namespace fs { namespace fs {

View file

@ -2,7 +2,7 @@
// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov // Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov
#include "WebAuthentication.h" #include "WebAuthentication.h"
#include <ESPAsyncWebServer.h> #include "ESPAsyncWebServer.h"
AsyncMiddlewareChain::~AsyncMiddlewareChain() { AsyncMiddlewareChain::~AsyncMiddlewareChain() {
for (AsyncMiddleware *m : _middlewares) { for (AsyncMiddleware *m : _middlewares) {