Merge pull request #267 from tbeu/Patch-inttypes-on-MSVC

Make use of MSVC specific macros for format specifiers
This commit is contained in:
Takatoshi Kondo 2015-04-09 15:07:46 +09:00
commit dcdc51ce30

View File

@ -20,7 +20,15 @@
#include <stdio.h>
#include <string.h>
#if !defined(_MSC_VER) || _MSC_VER >= 1800
#if defined(_MSC_VER)
#if _MSC_VER >= 1800
#include <inttypes.h>
#else
#define PRIu64 "I64u"
#define PRIi64 "I64i"
#define PRIi8 "i"
#endif
#else
#include <inttypes.h>
#endif