diff options
author | Karl Williamson <khw@cpan.org> | 2020-09-05 09:39:38 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-09-05 11:30:20 -0600 |
commit | d387182099b4bf304f6e55606d2e6096a9f9caf9 (patch) | |
tree | 97801cabbb1648c31304509df1b68d2b201927df /autodoc.pl | |
parent | d771dca875579198e8a34ee9d0e3e6dfb8168db7 (diff) | |
download | perl-d387182099b4bf304f6e55606d2e6096a9f9caf9.tar.gz |
autodoc: Fix for win32.
This platform has config.h located in a different place
Thanks to Christian Walde for testing this
Diffstat (limited to 'autodoc.pl')
-rw-r--r-- | autodoc.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/autodoc.pl b/autodoc.pl index ed7c40389f..cf0c57b3fd 100644 --- a/autodoc.pl +++ b/autodoc.pl @@ -511,7 +511,10 @@ sub parse_config_h { use re '/aa'; # Everthing is ASCII in this file # Process config.h - open my $fh, '<', 'config.h' or die "Can't open config.h: $!"; + my $config_h = 'config.h'; + $config_h = 'win32/config.h' unless -e $config_h; + die "Can't find $config_h" unless -e $config_h; + open my $fh, '<', $config_h or die "Can't open $config_h: $!"; while (<$fh>) { # Look for lines like /* FOO_BAR: |