diff options
Diffstat (limited to 'source/blender/blenlib/BLI_sys_types.h')
-rw-r--r-- | source/blender/blenlib/BLI_sys_types.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h index 9c72433a415..7a7da5c097b 100644 --- a/source/blender/blenlib/BLI_sys_types.h +++ b/source/blender/blenlib/BLI_sys_types.h @@ -119,11 +119,8 @@ typedef uint64_t u_int64_t; # ifdef __cplusplus typedef bool _BLI_Bool; # else -/* using char here may cause nasty tricky bugs, e.g. - * bool is_bit_flag = RNA_property_flag(prop) & PROP_ENUM_FLAG; - * as PROP_ENUM_FLAG is farther than 8th bit, do_translate would be always false! - */ -# define _BLI_Bool unsigned int +/* Make sure bool is alays defined with the same size for both C and C++ */ +# define _BLI_Bool unsigned char # endif # else # define _BLI_Bool _Bool |