From 2b77aba93a8e30a222f1fc29cbf93d1f5af166ea Mon Sep 17 00:00:00 2001 From: James McLaughlin Date: Mon, 10 Dec 2012 18:18:36 +0000 Subject: [PATCH] Fix MSVS 2005 and 2008 missing size_t typdef. Replace manual size_t typedef with stddef.h include Fixes #128, #141. --- http_parser.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http_parser.h b/http_parser.h index 4f20396..f1d605d 100644 --- a/http_parser.h +++ b/http_parser.h @@ -30,6 +30,7 @@ extern "C" { #include #if defined(_WIN32) && !defined(__MINGW32__) && (!defined(_MSC_VER) || _MSC_VER<1600) #include +#include typedef __int8 int8_t; typedef unsigned __int8 uint8_t; typedef __int16 int16_t; @@ -38,8 +39,6 @@ typedef __int32 int32_t; typedef unsigned __int32 uint32_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; -typedef SIZE_T size_t; -typedef SSIZE_T ssize_t; #else #include #endif