# define SvSHARED_HEK_FROM_PV(pvx) \
((struct hek*)(pvx - STRUCT_OFFSET(struct hek, hek_key)))
#endif
-#ifndef CopHINTHASH_get
-#define CopHINTHASH_get(c) ((COPHH*)((c)->cop_hints_hash))
-#endif
#ifndef MUTABLE_AV
#define MUTABLE_AV(p) ((AV*)p)
#endif
sv_size(aTHX_ st, NPathLink("cop_stash"), (SV *)basecop->cop_stash, SOME_RECURSION);
sv_size(aTHX_ st, NPathLink("cop_filegv"), (SV *)basecop->cop_filegv, SOME_RECURSION);
#endif
+
#if (PERL_BCDVERSION >= 0x5009004)
+# if (PERL_BCDVERSION < 0x5013007)
+# define COPHH struct refcounted_he
+# endif
+# ifndef CopHINTHASH_get
+# define CopHINTHASH_get(c) ((COPHH*)((c)->cop_hints_hash))
+# endif
refcounted_he_size(aTHX_ st, CopHINTHASH_get(basecop), NPathLink("cop_hints_hash"));
#endif
}