diff --git a/src/AsyncEventSource.h b/src/AsyncEventSource.h index 49f65e85..ccfda95e 100644 --- a/src/AsyncEventSource.h +++ b/src/AsyncEventSource.h @@ -8,6 +8,11 @@ #if defined(ESP32) || defined(LIBRETINY) #include +#ifdef LIBRETINY +#ifdef round +#undef round +#endif +#endif #include #ifndef SSE_MAX_QUEUED_MESSAGES #define SSE_MAX_QUEUED_MESSAGES 32 diff --git a/src/AsyncWebSocket.h b/src/AsyncWebSocket.h index 979c8be7..f93b0387 100644 --- a/src/AsyncWebSocket.h +++ b/src/AsyncWebSocket.h @@ -8,6 +8,11 @@ #if defined(ESP32) || defined(LIBRETINY) #include +#ifdef LIBRETINY +#ifdef round +#undef round +#endif +#endif #include #ifndef WS_MAX_QUEUED_MESSAGES #define WS_MAX_QUEUED_MESSAGES 32