diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-22 13:47:42 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-27 08:37:29 +0000 |
commit | f9bbfafdab6ec76ff269d0f3959152d03d0272d0 (patch) | |
tree | 0344e7389a3d61e6400d5b82a9a71f866ae239d5 /win32/config_sh.PL | |
parent | 7e23982e45ede7c6810c2b6e5435dd8f854f13cf (diff) | |
download | perl-f9bbfafdab6ec76ff269d0f3959152d03d0272d0.tar.gz |
Add USE_CPLUSPLUS build option to win32 makefiles
With thanks to Craig A. Berry and Daniel Dragan for finding the d_cplusplus
and extern_C options, respectively.
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r-- | win32/config_sh.PL | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 60fb4eded7..98255a8eb2 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 (<>) { |