summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2013-10-27 21:31:13 -0500
committerCraig A. Berry <craigberry@mac.com>2013-10-27 21:44:35 -0500
commit70d5cb32fc69fdf39d052f1b827d90827977d64f (patch)
treec191df581d9e08bb0b61474834714a0a3562b2a6 /handy.h
parentd8e4b4ea5f6bacfe838c2320064e9a286cc61411 (diff)
downloadperl-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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/handy.h b/handy.h
index f80ba2c9a5..131ede2e42 100644
--- a/handy.h
+++ b/handy.h
@@ -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