diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 09:23:43 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 09:23:43 +0900 |
| commit | 8890a992a665f59ee9ae8b9e877693e3fdae241a (patch) | |
| tree | 3a6d89abbca8ef4ec4a0d266af8394857eedec15 /include | |
| parent | 22469f3be18d31605c01f9d38ed50246fefe51a2 (diff) | |
| download | mruby-8890a992a665f59ee9ae8b9e877693e3fdae241a.tar.gz mruby-8890a992a665f59ee9ae8b9e877693e3fdae241a.zip | |
always use unsigned int as mrb_bool even in C++
Diffstat (limited to 'include')
| -rw-r--r-- | include/mrbconf.h | 10 | ||||
| -rw-r--r-- | include/mruby/value.h | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index 1e4a39381..72bae93f6 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -132,18 +132,8 @@ typedef short mrb_sym; # define PRIo64 "I64o" # define PRIx64 "I64x" # define PRIX64 "I64X" -# 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 diff --git a/include/mruby/value.h b/include/mruby/value.h index 1cc5263ad..082438d56 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -7,6 +7,8 @@ #ifndef MRUBY_VALUE_H #define MRUBY_VALUE_H +typedef unsigned int mrb_bool; + #ifndef MRB_NAN_BOXING enum mrb_vtype { |
