]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Compatibility fix for perl 5.13.7 and greater rt62800
authorAndrew Main <zefram@fysh.org>
Wed, 29 Dec 2010 23:03:09 +0000 (00:03 +0100)
committerVincent Pit <vince@profvince.com>
Wed, 29 Dec 2010 23:03:20 +0000 (00:03 +0100)
This fixes RT #62800.

autovivification.xs

index f198b1d8768373cbe900fd3b8b9119ebf68e28fd..cf0df8c474f1546b307bdfc6b2c709b96d5b6a4b 100644 (file)
@@ -288,7 +288,9 @@ STATIC U32 a_hash = 0;
 STATIC UV a_hint(pTHX) {
 #define a_hint() a_hint(aTHX)
  SV *hint;
-#if A_HAS_PERL(5, 9, 5)
+#ifdef cop_hints_fetch_pvn
+ hint = cop_hints_fetch_pvn(PL_curcop, __PACKAGE__, __PACKAGE_LEN__, a_hash, 0);
+#elif A_HAS_PERL(5, 9, 5)
  hint = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash,
                                        NULL,
                                        __PACKAGE__, __PACKAGE_LEN__,