fix lwIP redefinition of nfds_t

This commit is contained in:
Sergio R. Caprile committed 2026-01-02 14:22:55 -03:00
1 parent 1200f50e2e
commit 6de419d14c
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -651,7 +651,10 @@ typedef enum { false = 0, true = 1 } bool;
#endif
#endif
typedef unsigned long nfds_t;
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP)
typedef unsigned long nfds_t; // see #3388
#endif
#if defined(_MSC_VER)
#if MG_ENABLE_WINSOCK
#pragma comment(lib, "ws2_32.lib")
+4 -1
View File
@@ -110,7 +110,10 @@ typedef enum { false = 0, true = 1 } bool;
#endif
#endif
typedef unsigned long nfds_t;
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP)
typedef unsigned long nfds_t; // see #3388
#endif
#if defined(_MSC_VER)
#if MG_ENABLE_WINSOCK
#pragma comment(lib, "ws2_32.lib")