From: Nicholas Clark Date: Mon, 7 Apr 2008 17:36:41 +0000 (+0000) Subject: Tidy up compiler warning spotted by Jerry Hedden. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d5b8ed548f9015c1729a434d337defc04597fb54;p=p5sagit%2Fp5-mst-13.2.git Tidy up compiler warning spotted by Jerry Hedden. p4raw-id: //depot/perl@33658 --- diff --git a/ext/B/B.pm b/ext/B/B.pm index 5d491b4..05ffcb2 100644 --- a/ext/B/B.pm +++ b/ext/B/B.pm @@ -7,7 +7,7 @@ # package B; -our $VERSION = '1.20'; +our $VERSION = '1.21'; use XSLoader (); require Exporter; diff --git a/ext/B/B.xs b/ext/B/B.xs index 714ac4d..eca6f08 100644 --- a/ext/B/B.xs +++ b/ext/B/B.xs @@ -1211,10 +1211,20 @@ LOOP_lastop(o) MODULE = B PACKAGE = B::COP PREFIX = COP_ +#if PERL_VERSION >= 11 + +const char * +COP_label(o) + B::COP o + +#else + char * COP_label(o) B::COP o +#endif + char * COP_stashpv(o) B::COP o