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:
Thomas BehnandThomas Behn authored and GitHub committed 2021-08-10 08:29:27 -04:00
1 parent 469c6bc2b6
commit a58f042614
1 file changed
+2
+2
View File
@@ -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>