Make compatible with VS 2005 32 bits compiler #128

Closed
wants to merge 1 commit into
from
View
@@ -38,7 +38,9 @@ typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
+#if _MSC_VER<1400
@bnoordhuis
bnoordhuis Oct 1, 2012 Member

Why is this necessary and are you confident that it won't break MSVS 2008 or 2010?

@juanper
juanper Oct 16, 2012

This is necessary because I'm using MSVS 2005 yet in production code. My company don't want move yours production code to MSVS 2010/12 yet but I need this parser to extend old code. And I don't want install other compiler only to build this code. I tested in my home computer using both MSVS 2005 and MSVS 2010 and works fine.

typedef SIZE_T size_t;
+#endif
typedef SSIZE_T ssize_t;
#else
#include <stdint.h>