From 7146bfa8a4fa2e3b5b72f378620b28f622f15848 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Wed, 10 Oct 2012 17:02:55 +0000 Subject: [PATCH] + small fix for windows --- src/server/kiwix-serve.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 }