MSVC compatibility

This commit is contained in:
Matthias Köfferlein 2018-09-06 00:22:38 +02:00
parent ce918bbc4e
commit b0dac7026f
1 changed files with 9 additions and 2 deletions

View File

@ -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 <sys/time.h>
#include <unistd.h>
#if !defined(_MSC_VER)
# include <sys/time.h>
# include <unistd.h>
#else
# include <WinSock2.h>
#endif
#include <curl/curl.h>
@ -43,6 +49,7 @@
#include <cassert>
#include <iostream>
#include <memory>
#include <algorithm>
// #define DEBUG_CURL 1