In metaconfig.git, the branch master has been updated <http://perl5.git.perl.org/metaconfig.git/commitdiff/8ba3403cfb2849c364f4da9dc12b8daf287ef6f3?hp=55db06f7a3707318f9094cbdf1fb59a3930fdd95>
- Log ----------------------------------------------------------------- commit 8ba3403cfb2849c364f4da9dc12b8daf287ef6f3 Author: H.Merijn Brand <[email protected]> Date: Fri Sep 16 13:26:44 2011 +0200 Add probe for stdbool.h Backport from Nicholas' aec14df292f1ec7cd254f5a5a7fb4827bab2b5cd: 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>. ----------------------------------------------------------------------- Summary of changes: U/perl/i_stdbool.U | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 U/perl/i_stdbool.U diff --git a/U/perl/i_stdbool.U b/U/perl/i_stdbool.U new file mode 100644 index 0000000..49502a0 --- /dev/null +++ b/U/perl/i_stdbool.U @@ -0,0 +1,25 @@ +?RCS: $Id: i_stdbool.U,v $ +?RCS: +?RCS: Copyright (c) 2011 H.Merijn Brand +?RCS: +?RCS: You may distribute under the terms of either the GNU General Public +?RCS: License or the Artistic License, as specified in the README file. +?RCS: +?MAKE:i_stdbool: Inhdr +?MAKE: -pick add $@ %< +?S:i_stdbool: +?S: This variable conditionally defines the I_STDBOOL symbol, which +?S: indicates to the C program that <stdbool.h> exists and should +?S: be included. +?S:. +?C:I_STDBOOL: +?C: This symbol, if defined, indicates that <stdbool.h> exists and +?C: can be included. +?C:. +?H:#$i_stdbool I_STDBOOL /**/ +?H:. +?LINT:set i_stdbool +: see if stdbool is available +set stdbool.h i_stdbool +eval $inhdr + -- perl5 metaconfig repository
