This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c extern -> EXTERN_C
authorDaniel Dragan <bulk88@hotmail.com>
Tue, 19 Nov 2013 01:10:04 +0000 (20:10 -0500)
committerTony Cook <tony@develop-help.com>
Wed, 20 Nov 2013 00:34:46 +0000 (11:34 +1100)
Otherwise re wont build on Win32 VC6 C++ mode.

regcomp.c

index e78d2fc..9c47bd9 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -81,7 +81,7 @@
 #define REG_COMP_C
 #ifdef PERL_IN_XSUB_RE
 #  include "re_comp.h"
-extern const struct regexp_engine my_reg_engine;
+EXTERN_C const struct regexp_engine my_reg_engine;
 #else
 #  include "regcomp.h"
 #endif