diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 1ea2911..a7cbe32 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -24,12 +24,16 @@ #endif #ifdef _WIN32 -#include // otherwise socklen_t is not a recognized type -#include +#if (_MSC_VER < 1600) +#include "stdint4win.h" +#endif #include -#include // otherwise int is not a recognized type -typedef SSIZE_T ssize_t; +#include // otherwise socklen_t is not a recognized type +//#include // otherwise int is not a recognized type typedef int off_t; +typedef SSIZE_T ssize_t; +typedef UINT64 uint64_t; +typedef UINT16 uint16_t; extern "C" { #include }