From 7ff0e0613a4a147a2220c8bdfe69246b5182b2f0 Mon Sep 17 00:00:00 2001 From: clanmills Date: Thu, 1 Oct 2020 17:23:12 +0100 Subject: [PATCH] fix_1335_winsock2_0.27 --- include/exiv2/config.h | 5 ----- src/http.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/exiv2/config.h b/include/exiv2/config.h index d81a2a00..01897dea 100644 --- a/include/exiv2/config.h +++ b/include/exiv2/config.h @@ -93,11 +93,6 @@ typedef int pid_t; #endif ////////////////////////////////////// -#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__) -#define __USE_W32_SOCKETS -#include -#endif - // https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11 #if __cplusplus >= 201103L #include diff --git a/src/http.cpp b/src/http.cpp index afd79492..a4c75e9b 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -40,6 +40,11 @@ //////////////////////////////////////// // platform specific code +#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__) +#define __USE_W32_SOCKETS +#include +#endif + #if defined(WIN32) || defined(_MSC_VER) || defined(__MINGW__) #include #include