aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
authorNuno Goncalves <[email protected]>2019-07-13 14:52:40 +0200
committerNuno Goncalves <[email protected]>2019-10-14 15:59:38 +0200
commit418cc99ffd56b0f5e2c753355fc8f29672fb82ba (patch)
treef43a9c3543e7a4ebf46a5dcec55ba319d54674e2 /src/lib/utils
parent385dd2fb263aeec795476243cd9fb5905932d77f (diff)
Add missing define of _WINSOCKAPI_ to avoid unintentional of winsock
Signed-off-by: Nuno Goncalves <[email protected]>
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/os_utils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index a27e9117f..84a2d0ebe 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -47,6 +47,7 @@
#if defined(BOTAN_TARGET_OS_HAS_WIN32)
#define NOMINMAX 1
+ #define _WINSOCKAPI_ // stop windows.h including winsock.h
#include <windows.h>
#endif