From b0dac7026f94ccd76b3c9a65d1bfd955774f0c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Thu, 6 Sep 2018 00:22:38 +0200 Subject: [PATCH] MSVC compatibility --- src/tl/tl/tlHttpStreamCurl.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tl/tl/tlHttpStreamCurl.cc b/src/tl/tl/tlHttpStreamCurl.cc index d7c610f17..4d1bb1a86 100644 --- a/src/tl/tl/tlHttpStreamCurl.cc +++ b/src/tl/tl/tlHttpStreamCurl.cc @@ -20,6 +20,8 @@ */ +#define NOMINMAX // for windows.h -> min/max not defined + #include "tlHttpStream.h" #include "tlHttpStreamCurl.h" #include "tlLog.h" @@ -32,8 +34,12 @@ #include "tlFileUtils.h" #include "tlUri.h" -#include -#include +#if !defined(_MSC_VER) +# include +# include +#else +# include +#endif #include @@ -43,6 +49,7 @@ #include #include #include +#include // #define DEBUG_CURL 1