diff options
author | Craig A. Berry <craigberry@mac.com> | 2013-10-27 21:31:13 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2013-10-27 21:44:35 -0500 |
commit | 70d5cb32fc69fdf39d052f1b827d90827977d64f (patch) | |
tree | c191df581d9e08bb0b61474834714a0a3562b2a6 /handy.h | |
parent | d8e4b4ea5f6bacfe838c2320064e9a286cc61411 (diff) | |
download | perl-70d5cb32fc69fdf39d052f1b827d90827977d64f.tar.gz |
Don't make bool an int on VMS.
The special case has been there since 61bb59065bf1b12edab3, most
likely because the VMS C++ compiler, like a lot of other C++
compilers in the 1990s implemented a bool as an int, and making
the type in C compatible seemed like a good idea. But no C++
compiler that's likely to build Perl on VMS has a bool type that
occupies more than one byte now, so remove the special case. We're
unlikely to even see this code since we've had stdbool.h since
DEC C 6.4, released in 2001.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -104,11 +104,7 @@ Null SV pointer. (No longer available when C<PERL_CORE> is defined.) #endif /* NeXT || __NeXT__ */ #ifndef HAS_BOOL -# if defined(VMS) -# define bool int -# else -# define bool char -# endif +# define bool char # define HAS_BOOL 1 #endif |