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:
commit
3f1a6a509b
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user