mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Don't define INVALID_SOCKET if it has been defined already (i.e. by libpcap) (#1021)
Co-authored-by: Thomas Behn <Thomas.Behn@meinberg.de>
This commit is contained in:
parent
469c6bc2b6
commit
a58f042614
@ -178,7 +178,9 @@ using socket_t = SOCKET;
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
using socket_t = int;
|
using socket_t = int;
|
||||||
|
#ifndef INVALID_SOCKET
|
||||||
#define INVALID_SOCKET (-1)
|
#define INVALID_SOCKET (-1)
|
||||||
|
#endif
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user