diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-16 07:34:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-16 07:38:57 +0300 |
commit | 31375a1b21a98f5ce6abdd46a41a1e287d3d5050 (patch) | |
tree | 00deaadbbe4e66173cab1008bd553459315db9d4 /source | |
parent | 92b222a158877eeb90cc391ff8f64c133153bdf9 (diff) |
Cleanup: stdbool no longer optional, remove checks
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_sys_types.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h index c9cf33f2f69..7929e1d6551 100644 --- a/source/blender/blenlib/BLI_sys_types.h +++ b/source/blender/blenlib/BLI_sys_types.h @@ -78,25 +78,7 @@ typedef uint64_t u_int64_t; #endif /* ifdef platform for types */ #include <stddef.h> /* size_t define */ - -#ifdef HAVE_STDBOOL_H -# include <stdbool.h> -#elif !defined(__bool_true_false_are_defined) && !defined(__BOOL_DEFINED) -# ifndef HAVE__BOOL -# ifdef __cplusplus -typedef bool _BLI_Bool; -# else -/* 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 -# endif -# define bool _BLI_Bool -# define false 0 -# define true 1 -# define __bool_true_false_are_defined 1 -#endif +#include <stdbool.h> #ifdef __cplusplus } |