Skip to content

Commit a0f99f0

Browse files
committed
[Win32] Define $Config{i_stdckdint} and I_STDCKDINT when appropriate
1 parent 3858926 commit a0f99f0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6788,6 +6788,7 @@ win32/config_H.gc Win32 config header (MinGW build)
67886788
win32/config_h.PL Perl code to convert Win32 config.sh to config.h
67896789
win32/config_H.vc Win32 config header (Visual C++ build)
67906790
win32/config_sh.PL Perl code to update Win32 config.sh from Makefile
6791+
win32/configure/have_stdckdint.c check for availability of stdckdint.h
67916792
win32/configure/rt.c identify default runtime
67926793
win32/create_perllibst_h.pl creates perllibst.h file for inclusion from perllib.c
67936794
win32/distclean.bat Remove _ALL_ files not listed here in MANIFEST

win32/config_sh.PL

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ my $ver = `ver 2>nul`;
148148
$opt{osvers} = $ver =~ /\b(\d+(?:\.\d+)+)\b/ ? $1 : '4.0';
149149

150150
if (exists $opt{cc}) {
151+
`$opt{cc} -o have_stdckdint.exe configure/have_stdckdint.c 1>nul 2>&1`;
152+
if (-e 'have_stdckdint.exe') {
153+
$opt{i_stdckdint} = 'define' if `have_stdckdint` eq '0';
154+
unlink 'have_stdckdint.exe'; # have_stdckdint.exe no longer needed
155+
}
156+
151157
# cl version detection borrowed from Test::Smoke's configsmoke.pl
152158
if ($opt{cc} =~ /\b(?:cl|icl)/) { #MSVC can come as clarm.exe, icl=Intel C
153159
my $output = `$opt{cc} 2>&1`;

0 commit comments

Comments
 (0)