This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make boot_Win32CORE extern "C" for C++ builds origin/tonyc/cygwin-fixes
authorTony Cook <tony@develop-help.com>
Thu, 29 Nov 2018 03:16:03 +0000 (14:16 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 29 Nov 2018 03:18:44 +0000 (14:18 +1100)
ext/Win32CORE/Win32CORE.c

index 5024642..6e5e1ce 100644 (file)
@@ -40,6 +40,9 @@ XS(w32_CORE_all){
     call_pv(function, GIMME_V);
 }
 
+#ifdef __cplusplus
+extern "C"
+#endif
 XS_EXTERNAL(boot_Win32CORE)
 {
     /* This function only exists because writemain.SH, lib/ExtUtils/Embed.pm