Subject: | Compilation failure using MS VC++ 7.0. |
Dear John Peacock,
Unfortunately the compilation fails using MS VC++ 7.0.
This is because the declaration of variables must precede statements using some
compiler not supporting C99.
May I ask you a favour?
Could you apply the attached patch?
Best regards,
Taro Nishino
Subject: | vxs.xs.diff |
--- vxs.xs.orig Thu Jul 23 20:54:37 2009
+++ vxs.xs Thu Jul 23 20:57:18 2009
@@ -35,12 +35,13 @@
{
SV *vs = ST(1);
SV *rv;
- PERL_UNUSED_ARG(ix);
const char * const classname =
sv_isobject(ST(0)) /* get the class if called as an object method */
? HvNAME_get(SvSTASH(SvRV(ST(0))))
: (char *)SvPV_nolen(ST(0));
+ PERL_UNUSED_ARG(ix);
+
if (items > 3)
Perl_croak(aTHX_ "Usage: version::new(class, version)");
@@ -153,8 +154,8 @@
{
SV *ver = ST(0);
SV * rv;
- PERL_UNUSED_ARG(ix);
const char * classname = "";
+ PERL_UNUSED_ARG(ix);
if ( items == 2 && (ST(1)) != &PL_sv_undef ) {
/* getting called as object or class method */
ver = ST(1);