]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - autovivification.xs
Force linking against the perl dll when using gcc 3.4 on Windows
[perl/modules/autovivification.git] / autovivification.xs
index a42b9803aa74ef2d46f71c976a885715d575df41..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__,
@@ -389,7 +391,7 @@ STATIC void a_map_delete(pTHX_ const OP *o) {
  MUTEX_LOCK(&a_op_map_mutex);
 #endif
 
- ptable_map_store(a_op_map, o, NULL);
+ ptable_map_delete(a_op_map, o);
 
 #ifdef USE_ITHREADS
  MUTEX_UNLOCK(&a_op_map_mutex);