From a58f0426148daef861e4eaf43548784d340a8ad6 Mon Sep 17 00:00:00 2001 From: Thomas Behn <72782362+TobaYn3@users.noreply.github.com> Date: Tue, 10 Aug 2021 14:29:27 +0200 Subject: [PATCH] Don't define INVALID_SOCKET if it has been defined already (i.e. by libpcap) (#1021) Co-authored-by: Thomas Behn --- httplib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httplib.h b/httplib.h index 2b52f0f..632962f 100644 --- a/httplib.h +++ b/httplib.h @@ -178,7 +178,9 @@ using socket_t = SOCKET; #include using socket_t = int; +#ifndef INVALID_SOCKET #define INVALID_SOCKET (-1) +#endif #endif //_WIN32 #include