summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-09-14 14:03:31 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2011-09-16 13:32:37 +0200
commitbd31be4baa3ee68abdb92c0db3200efe0fad903b (patch)
tree064b376e87748cf3ceee2c1a5fae468146e0b9de /Configure
parent28051109dbd5d27f591646b8e36a5f6be33854d6 (diff)
downloadperl-bd31be4baa3ee68abdb92c0db3200efe0fad903b.tar.gz
Probe for <stdbool.h>, and if found use it in handy.h
This means that the core uses the compiler's bool type if one exists. This avoids potential problems of clashes between perl's own implementation of bool and the compiler's bool type, which otherwise occur when one attempts to include headers which in turn include <stdbool.h>. Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/Configure b/Configure
index 74450a95e6..d9cdd032df 100755
--- a/Configure
+++ b/Configure
@@ -926,6 +926,7 @@ i_pwd=''
i_sfio=''
i_shadow=''
i_socks=''
+i_stdbool=''
i_stddef=''
i_stdlib=''
i_string=''
@@ -21764,6 +21765,10 @@ set i_termio; eval $setvar
val=$val2; set i_sgtty; eval $setvar
val=$val3; set i_termios; eval $setvar
+: see if stdbool is available
+set stdbool.h i_stdbool
+eval $inhdr
+
: see if stddef is available
set stddef.h i_stddef
eval $inhdr
@@ -23051,6 +23056,7 @@ i_sgtty='$i_sgtty'
i_shadow='$i_shadow'
i_socks='$i_socks'
i_stdarg='$i_stdarg'
+i_stdbool='$i_stdbool'
i_stddef='$i_stddef'
i_stdlib='$i_stdlib'
i_string='$i_string'