summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 12:23:17 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-01-07 12:23:17 +0900
commit7c82bfa7fe17ef7b44d55f058bb4be14eb7e62e0 (patch)
tree39afece57ee759b9cd33b793ee524f5f45349994 /include
parent3cf5af681af4b41122bb313d8a98eb675dc6bd01 (diff)
downloadmruby-7c82bfa7fe17ef7b44d55f058bb4be14eb7e62e0.tar.gz
mruby-7c82bfa7fe17ef7b44d55f058bb4be14eb7e62e0.zip
mruby-sprintf to use mrb_int formatting macros; ref #3076
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 5c1aa10a6..0eac19df9 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -22,6 +22,8 @@ struct mrb_state;
# error "You can't define MRB_INT16 and MRB_INT64 at the same time."
#endif
+#include <inttypes.h>
+
#if defined(MRB_INT64)
typedef int64_t mrb_int;
# define MRB_INT_BIT 64