From 30b0100e6cffe12d09e497f609b174d819d04014 Mon Sep 17 00:00:00 2001 From: cremno Date: Tue, 22 Mar 2016 11:46:49 +0100 Subject: fix VS2010/2012 build They don't have , only . --- include/mruby/value.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/mruby/value.h b/include/mruby/value.h index 0eac19df9..4330b9441 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -22,7 +22,19 @@ struct mrb_state; # error "You can't define MRB_INT16 and MRB_INT64 at the same time." #endif -#include +#if defined _MSC_VER && _MSC_VER < 1800 +# define PRIo64 "llo" +# define PRId64 "lld" +# define PRIx64 "llx" +# define PRIo16 "ho" +# define PRId16 "hd" +# define PRIx16 "hx" +# define PRIo32 "o" +# define PRId32 "d" +# define PRIx32 "x" +#else +# include +#endif #if defined(MRB_INT64) typedef int64_t mrb_int; -- cgit v1.2.3