http.cpp doesn't compile with C++/98 on Cygwin and MinGW/msys2.

This commit is contained in:
clanmills 2020-05-20 06:50:29 +01:00
parent f6ccb8e8bd
commit 0215608071

View File

@ -20,6 +20,10 @@
// included header files
#include "config.h"
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
#define __USE_W32_SOCKETS
#include <winsock2.h>
#endif
#include "datasets.hpp"
#include "http.hpp"
@ -32,10 +36,6 @@
#include <sys/stat.h>
#include <string.h>
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
#include <winsock2.h>
#endif
#define SLEEP 1000
#define SNOOZE 0