diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-09-26 06:31:07 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-26 06:31:07 +0900 |
| commit | 184aeb0694b235642a073c211ec1f7ddb21e6e41 (patch) | |
| tree | 6d816848b2bb743a41dd5731a17e683cd1b0f8ae /include | |
| parent | 0d661bcca62bb29b07924a4ceb84e6adfd04be79 (diff) | |
| parent | 84d9296c05308d8aca258ae59c06d90c942d382c (diff) | |
| download | mruby-184aeb0694b235642a073c211ec1f7ddb21e6e41.tar.gz mruby-184aeb0694b235642a073c211ec1f7ddb21e6e41.zip | |
Merge pull request #4732 from dearblue/inttypes
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 72059be63..b318e9042 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> |
