mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07: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
1 changed files with 2 additions and 0 deletions
|
@ -178,7 +178,9 @@ using socket_t = SOCKET;
|
|||
#include <unistd.h>
|
||||
|
||||
using socket_t = int;
|
||||
#ifndef INVALID_SOCKET
|
||||
#define INVALID_SOCKET (-1)
|
||||
#endif
|
||||
#endif //_WIN32
|
||||
|
||||
#include <algorithm>
|
||||
|
|
Loading…
Reference in a new issue