|
|
|
@ -24,12 +24,16 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <WS2tcpip.h> // otherwise socklen_t is not a recognized type
|
|
|
|
#if (_MSC_VER < 1600)
|
|
|
|
#include <stdint4win.h>
|
|
|
|
#include "stdint4win.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#include <winsock2.h>
|
|
|
|
#include <winsock2.h>
|
|
|
|
#include <Windows.h> // otherwise int is not a recognized type
|
|
|
|
#include <WS2tcpip.h> // otherwise socklen_t is not a recognized type
|
|
|
|
typedef SSIZE_T ssize_t;
|
|
|
|
//#include <Windows.h> // otherwise int is not a recognized type
|
|
|
|
typedef int off_t;
|
|
|
|
typedef int off_t;
|
|
|
|
|
|
|
|
typedef SSIZE_T ssize_t;
|
|
|
|
|
|
|
|
typedef UINT64 uint64_t;
|
|
|
|
|
|
|
|
typedef UINT16 uint16_t;
|
|
|
|
extern "C" {
|
|
|
|
extern "C" {
|
|
|
|
#include <microhttpd.h>
|
|
|
|
#include <microhttpd.h>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|