From: Steve Hay Date: Wed, 12 Jul 2006 10:28:39 +0000 (+0000) Subject: Fix change #28552: VC++ doesn't like code before declarations X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0dbc1c87c2e8a14e9699b610e0307f70ab81318b;p=p5sagit%2Fp5-mst-13.2.git Fix change #28552: VC++ doesn't like code before declarations p4raw-link: @28552 on //depot/perl: 91dba0be91f1c35e9474de79c0592c0c8d8379dc p4raw-id: //depot/perl@28556 --- diff --git a/ext/Hash/Util/FieldHash/FieldHash.xs b/ext/Hash/Util/FieldHash/FieldHash.xs index faddb96..44ff3ce 100644 --- a/ext/Hash/Util/FieldHash/FieldHash.xs +++ b/ext/Hash/Util/FieldHash/FieldHash.xs @@ -21,11 +21,12 @@ START_MY_CXT HV* HUF_get_ob_reg(void) { dSP; HV* ob_reg = NULL; + I32 items; ENTER; SAVETMPS; PUSHMARK(SP); - I32 items = call_pv(HUF_OB_REG, G_SCALAR|G_NOARGS); + items = call_pv(HUF_OB_REG, G_SCALAR|G_NOARGS); SPAGAIN; if (items == 1 && TOPs && SvROK(TOPs) && SvTYPE(SvRV(TOPs)) == SVt_PVHV) {