From 84d9296c05308d8aca258ae59c06d90c942d382c Mon Sep 17 00:00:00 2001 From: dearblue Date: Wed, 25 Sep 2019 23:02:23 +0900 Subject: Use inttypes for `snprintf()` --- include/mruby/value.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mruby/value.h b/include/mruby/value.h index 56dc20d79..43124da1c 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -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 -- cgit v1.2.3