diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-06 14:53:43 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-06 14:53:43 +0000 |
commit | d8931259d0bfd8f4d97402250488a590be2a4453 (patch) | |
tree | 63b216f9eeac0ee4032692b095c31ed014091eb7 /internal.h | |
parent | d9699fadf8b7031fb92854106d7703b8370eb95f (diff) | |
download | ruby-d8931259d0bfd8f4d97402250488a590be2a4453.tar.gz |
internal.h: unify our own stdtbool.h implementation
because we had another one in missing/stdbool.h as well.
Assuming that _Bool does not exist when stdbool.h is absent, I'm in
favor of r57462 implementation rather than r61326.
Note that Visual Studio 2013 has stdbool.h and thus r57462's commit
message is somewhat misleading. This missing/stdbool.h is for Visual
Studio 2012 or older, and for Oracle Solaris Studio 12.2 or older because
it's added in 12.3 https://docs.oracle.com/cd/E24457_01/html/E21987/gkeza.html.
missing/stdbool.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/internal.h b/internal.h index b51037e0dc..c6cf73bf10 100644 --- a/internal.h +++ b/internal.h @@ -23,18 +23,8 @@ extern "C" { #ifdef HAVE_STDBOOL_H # include <stdbool.h> -#endif - -#ifndef __bool_true_false_are_defined -# ifndef __cplusplus -# undef bool -# undef false -# undef true -# define bool signed char -# define false 0 -# define true 1 -# define __bool_true_false_are_defined 1 -# endif +#else +# include "missing/stdbool.h" #endif /* The most significant bit of the lower part of half-long integer. |