mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
applying C++ patch from @monaka to support C++ bool type; close #1019
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user