mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-25 13:19:59 -04:00
+ small fix for windows
This commit is contained in:
parent
249470a583
commit
7146bfa8a4
@ -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>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user