Skip to content

Commit a58f042

Browse files
TobaYn3thomas-behn
andauthored
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>
1 parent 469c6bc commit a58f042

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

httplib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ using socket_t = SOCKET;
178178
#include <unistd.h>
179179

180180
using socket_t = int;
181+
#ifndef INVALID_SOCKET
181182
#define INVALID_SOCKET (-1)
183+
#endif
182184
#endif //_WIN32
183185

184186
#include <algorithm>

0 commit comments

Comments
 (0)