+ small fix for windows

This commit is contained in:
kelson42 2012-10-10 17:02:55 +00:00
parent 249470a583
commit 7146bfa8a4

View File

@ -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>
} }