Generalize socket constants

This commit is contained in:
cpq committed 2022-11-05 12:33:49 +00:00
1 parent 0defce37f0
commit f022633f29
7 files changed
+158 -144

No files matched your search

+12
View File
@@ -111,6 +111,18 @@
#endif
#endif
#ifndef MG_INVALID_SOCKET
#define MG_INVALID_SOCKET (-1)
#endif
#ifndef MG_SOCKET_TYPE
#define MG_SOCKET_TYPE int
#endif
#ifndef MG_SOCKET_ERRNO
#define MG_SOCKET_ERRNO errno
#endif
#if MG_ENABLE_EPOLL
#define MG_EPOLL_ADD(c) \
do { \