applying C++ patch from @monaka to support C++ bool type; close #1019

This commit is contained in:
Yukihiro Matz Matsumoto
2013-03-18 07:57:07 +09:00
parent 7872bee700
commit 13cd0363f0
+8
View File
@@ -115,10 +115,18 @@ typedef short mrb_sym;
# define strtoll _strtoi64
# define PRId32 "I32d"
# define PRId64 "I64d"
# ifdef __cplusplus
typedef bool mrb_bool;
# else
typedef unsigned int mrb_bool;
# endif
#else
# include <inttypes.h>
# ifdef __cplusplus
typedef bool mrb_bool;
# else
typedef _Bool mrb_bool;
# endif
#endif
#ifdef ENABLE_STDIO