Defined inttypes.h for older MSVC compilers

Older MSVC compilers do not support the C99 standard
This commit is contained in:
Jason Erickson 2017-02-09 22:27:18 -07:00
parent d52e9100d2
commit 7493ea24f2

View File

@ -139,6 +139,17 @@ static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)
: ((_fpclass(x) == _FPCLASS_NINF) ? -1 : 0))
#endif
#define strcasecmp(x, y) lstrcmpi(x, y)
#if _MSC_VER <= 1600
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
#endif
#endif
#include "win32_support.h"