summaryrefslogtreecommitdiff
path: root/regen/feature.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-04-11 16:47:27 +0200
committerNicholas Clark <nick@ccl4.org>2012-04-12 00:35:06 +0200
commitfc4b5f72837b3df426905782485aee7b794cb692 (patch)
tree7365743e04143a9f1dc8a4b06efa296936a904c5 /regen/feature.pl
parent2653c1e3b10f71430de1ab8ab0417ca5b048ab19 (diff)
downloadperl-fc4b5f72837b3df426905782485aee7b794cb692.tar.gz
Tweak the FEATURE_IS_ENABLED() macro to avoid a bug in the HP-UX compiler.
Diffstat (limited to 'regen/feature.pl')
-rwxr-xr-xregen/feature.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/regen/feature.pl b/regen/feature.pl
index 2a8d369ba2..222215a077 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -231,10 +231,12 @@ print $h <<'EOH';
#define CURRENT_FEATURE_BUNDLE \
((CURRENT_HINTS & HINT_FEATURE_MASK) >> HINT_FEATURE_SHIFT)
+/* Avoid using ... && Perl_feature_is_enabled(...) as that triggers a bug in
+ the HP-UX cc on PA-RISC */
#define FEATURE_IS_ENABLED(name) \
((CURRENT_HINTS \
& HINT_LOCALIZE_HH) \
- && Perl_feature_is_enabled(aTHX_ STR_WITH_LEN(name)))
+ ? Perl_feature_is_enabled(aTHX_ STR_WITH_LEN(name)) : FALSE)
/* The longest string we pass in. */
EOH