Skip to content

Commit 029b057

Browse files
Merge pull request #214 from bdraco/libretiny_Fix
Fix compile on libretiny due to round macro conflict
2 parents 7ebeb45 + c9b70bd commit 029b057

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/AsyncEventSource.h

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

99
#if defined(ESP32) || defined(LIBRETINY)
1010
#include <AsyncTCP.h>
11+
#ifdef LIBRETINY
12+
#ifdef round
13+
#undef round
14+
#endif
15+
#endif
1116
#include <mutex>
1217
#ifndef SSE_MAX_QUEUED_MESSAGES
1318
#define SSE_MAX_QUEUED_MESSAGES 32

src/AsyncWebSocket.h

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

99
#if defined(ESP32) || defined(LIBRETINY)
1010
#include <AsyncTCP.h>
11+
#ifdef LIBRETINY
12+
#ifdef round
13+
#undef round
14+
#endif
15+
#endif
1116
#include <mutex>
1217
#ifndef WS_MAX_QUEUED_MESSAGES
1318
#define WS_MAX_QUEUED_MESSAGES 32

0 commit comments

Comments
 (0)