Subject: | Support older versions of MSVC |
With older versions of MSVC, I got errors like below
Callsite.xs(89) : error C2143: syntax error : missing ';' before 'const'
Callsite.xs(90) : error C2143: syntax error : missing ';' before 'type'
Callsite.xs(92) : error C2065: 'cx' : undeclared identifier
Callsite.xs(92) : error C2065: 'dbcx' : undeclared identifier
I would suggest applying a patch like this, for C90 compatibility.
--- Callsite.xs.orig 2017-03-16 02:47:53.000000002 +0000
+++ Callsite.xs 2017-03-16 08:52:08.000000002 +0000
@@ -85,7 +85,7 @@
SV *
callsite(level = 0)
I32 level
- INIT:
+ PREINIT:
const PERL_CONTEXT *cx, *dbcx;
int rv = 1;
PPCODE: