Use <stdint.h> shipped with Visual Studio 2010 and later

Visual Studio didn’t have <stdint.h> until 2010, therefore we had a bunch of typedefs for int8_t, int16_t and the likes in "stdint.hpp". This patch limits these typedefs to Visual Studio versions older than 2010 and uses compiler-shipped <stdint.h> on 2010 and newer.
This commit is contained in:
Ivan Pechorin 2012-09-26 15:13:13 +04:00
parent ff264cb044
commit 9056c13e1e

View File

@ -27,7 +27,7 @@
#include <inttypes.h>
#elif defined _MSC_VER
#elif defined _MSC_VER && _MSC_VER < 1600
#ifndef int8_t
typedef __int8 int8_t;