Stricter MG_ARCH_CUSTOM and type conversions in sock.c

This commit is contained in:
cpq committed 2021-03-13 12:34:26 +00:00
1 parent 4356b953ca
commit 2594e7b37a
11 files changed
+238 -96

No files matched your search

+6 -3
View File
@@ -4,9 +4,7 @@
#define MG_ENABLE_LWIP 0
#endif
#if MG_ENABLE_LWIP
#define MG_ENABLE_SOCKET 0
#elif !defined(MG_ENABLE_SOCKET)
#ifndef MG_ENABLE_SOCKET
#define MG_ENABLE_SOCKET 1
#endif
@@ -42,6 +40,11 @@
#define MG_ENABLE_MD5 0
#endif
// Set MG_ENABLE_WINSOCK=0 for Win32 builds with external IP stack (like LWIP)
#ifndef MG_ENABLE_WINSOCK
#define MG_ENABLE_WINSOCK 1
#endif
#ifndef MG_ENABLE_DIRECTORY_LISTING
#define MG_ENABLE_DIRECTORY_LISTING 0
#endif