Fix MSVS 2005 and 2008 missing size_t typdef.

Replace manual size_t typedef with stddef.h include

Fixes #128, #141.
make-http-max-header-size-gyp-configurable
James McLaughlin 12 years ago committed by Ben Noordhuis
parent 54f6c78530
commit 2b77aba93a

@ -30,6 +30,7 @@ extern "C" {
#include <sys/types.h> #include <sys/types.h>
#if defined(_WIN32) && !defined(__MINGW32__) && (!defined(_MSC_VER) || _MSC_VER<1600) #if defined(_WIN32) && !defined(__MINGW32__) && (!defined(_MSC_VER) || _MSC_VER<1600)
#include <BaseTsd.h> #include <BaseTsd.h>
#include <stddef.h>
typedef __int8 int8_t; typedef __int8 int8_t;
typedef unsigned __int8 uint8_t; typedef unsigned __int8 uint8_t;
typedef __int16 int16_t; typedef __int16 int16_t;
@ -38,8 +39,6 @@ typedef __int32 int32_t;
typedef unsigned __int32 uint32_t; typedef unsigned __int32 uint32_t;
typedef __int64 int64_t; typedef __int64 int64_t;
typedef unsigned __int64 uint64_t; typedef unsigned __int64 uint64_t;
typedef SIZE_T size_t;
typedef SSIZE_T ssize_t;
#else #else
#include <stdint.h> #include <stdint.h>
#endif #endif

Loading…
Cancel
Save