Skip to content

Commit 83ac5a2

Browse files
committed
Fix compile on libretiny due to round macro conflict
1 parent 7ebeb45 commit 83ac5a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/AsyncEventSource.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#if defined(ESP32) || defined(LIBRETINY)
1010
#include <AsyncTCP.h>
11+
#ifdef round
12+
#undef round
13+
#endif
1114
#include <mutex>
1215
#ifndef SSE_MAX_QUEUED_MESSAGES
1316
#define SSE_MAX_QUEUED_MESSAGES 32

src/AsyncWebSocket.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#if defined(ESP32) || defined(LIBRETINY)
1010
#include <AsyncTCP.h>
11+
#ifdef round
12+
#undef round
13+
#endif
1114
#include <mutex>
1215
#ifndef WS_MAX_QUEUED_MESSAGES
1316
#define WS_MAX_QUEUED_MESSAGES 32

0 commit comments

Comments
 (0)