diff options
| author | dearblue <[email protected]> | 2019-09-25 23:02:23 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2019-09-25 23:28:05 +0900 |
| commit | 84d9296c05308d8aca258ae59c06d90c942d382c (patch) | |
| tree | cbabf34ed0feaca8a3e5a026e4d771fca2f7a563 /include | |
| parent | 3c1a2612e739a73c4c1be090aecfcbd2e9c0a7f8 (diff) | |
| download | mruby-84d9296c05308d8aca258ae59c06d90c942d382c.tar.gz mruby-84d9296c05308d8aca258ae59c06d90c942d382c.zip | |
Use inttypes for `snprintf()`
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/value.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <inttypes.h> |
