summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2015-01-22 13:47:42 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2015-01-27 08:37:29 +0000
commitf9bbfafdab6ec76ff269d0f3959152d03d0272d0 (patch)
tree0344e7389a3d61e6400d5b82a9a71f866ae239d5 /win32/config_sh.PL
parent7e23982e45ede7c6810c2b6e5435dd8f854f13cf (diff)
downloadperl-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.PL5
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 (<>) {