Merge pull request #4732 from dearblue/inttypes

Use inttypes for `snprintf()`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-09-26 06:31:07 +09:00
committed by GitHub
2 changed files with 7 additions and 4 deletions
+3
View File
@@ -41,12 +41,15 @@ struct mrb_state;
#if defined _MSC_VER && _MSC_VER < 1800
# define PRIo64 "llo"
# define PRId64 "lld"
# define PRIu64 "llu"
# define PRIx64 "llx"
# define PRIo16 "ho"
# define PRId16 "hd"
# define PRIu16 "hu"
# define PRIx16 "hx"
# define PRIo32 "o"
# define PRId32 "d"
# define PRIu32 "u"
# define PRIx32 "x"
#else
# include <inttypes.h>