Skip to content

Commit 67a6b58

Browse files
committed
Back port blead change 8f1332ed6
1 parent 37647a2 commit 67a6b58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/lib/MakeMaker/Test/NoXS.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ require XSLoader;
1010
# Things like Cwd key on this to decide if they're running miniperl
1111
delete $DynaLoader::{boot_DynaLoader};
1212

13+
if ($^O eq 'MSWin32') {
14+
require Win32;
15+
my $GetCwd = *{'Win32::GetCwd'}{CODE};
16+
my $SetChildShowWindow = *{'Win32::SetChildShowWindow'}{CODE};
17+
%{*main::Win32::{HASH}} = ();
18+
*{'Win32::GetCwd'} = $GetCwd;
19+
*{'Win32::SetChildShowWindow'} = $SetChildShowWindow;
20+
}
21+
1322
# This isn't 100%. Things like Win32.pm will crap out rather than
1423
# just not load. See ExtUtils::MM->_is_win95 for an example
1524
no warnings 'redefine';

0 commit comments

Comments
 (0)