Skip to content

Commit ccdef5f

Browse files
committed
Move FPSTR in cpp
1 parent 717925a commit ccdef5f

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/AsyncWebSocket.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#include <mbedtls/sha1.h>
2020
#elif defined(HOST)
2121
#include "BackPort_SHA1Builder.h"
22+
#ifndef FPSTR
23+
#define FPSTR (const char *)
24+
#endif
2225
#endif
2326

2427
#include <algorithm>

src/AsyncWebSocket.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include <Arduino.h>
77

8-
#if defined(ESP32) || defined(LIBRETINY)
8+
#if defined(ESP32) || defined(LIBRETINY) || defined(HOST)
99
#include <AsyncTCP.h>
1010
#ifdef LIBRETINY
1111
#ifdef round
@@ -16,14 +16,6 @@
1616
#ifndef WS_MAX_QUEUED_MESSAGES
1717
#define WS_MAX_QUEUED_MESSAGES 32
1818
#endif
19-
#elif defined(HOST)
20-
#ifndef FPSTR
21-
#define FPSTR (const char *)
22-
#endif
23-
#include <AsyncTCP.h>
24-
#ifndef WS_MAX_QUEUED_MESSAGES
25-
#define WS_MAX_QUEUED_MESSAGES 32
26-
#endif
2719
#elif defined(ESP8266)
2820
#include <ESPAsyncTCP.h>
2921
#ifndef WS_MAX_QUEUED_MESSAGES

0 commit comments

Comments
 (0)