X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/7e23982e45ede7c6810c2b6e5435dd8f854f13cf..f9bbfafdab:/win32/config_sh.PL diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 60fb4ed..98255a8 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -286,6 +286,11 @@ if ($opt{useithreads} eq 'define' && $opt{ccflags} =~ /-DPERL_IMPLICIT_SYS\b/) { $opt{d_pseudofork} = 'define'; } +if ($opt{usecplusplus} eq 'define') { + $opt{d_cplusplus} = 'define'; + $opt{extern_C} = 'extern "C"'; +} + #if the fields above are defined, they override the defaults in the premade #config file while (<>) {