Merge pull request #1211 from Exiv2/cpp98_cygwin_0.27

http.cpp doesn't compile with C++/98 on Cygwin and MinGW/msys2.
This commit is contained in:
Robin Mills 2020-05-20 12:09:02 +01:00 committed by GitHub
commit 3f1a6a509b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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