]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Fix build with the new PADLIST API from 5.17.4 rt79182
authorVincent Pit <vince@profvince.com>
Wed, 22 Aug 2012 09:24:55 +0000 (11:24 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 22 Aug 2012 09:24:55 +0000 (11:24 +0200)
Upper.xs

index c4e10388451b48a916867542cc904a53b0c53054..3d2472ad5fab707ab6b757696d48e7c08badbb9a 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -116,6 +116,10 @@ STATIC SV *su_newSV_type(pTHX_ svtype t) {
 # define CvISXSUB(C) CvXSUB(C)
 #endif
 
+#ifndef PADLIST_ARRAY
+# define PADLIST_ARRAY(P) AvARRAY(P)
+#endif
+
 #ifndef CxHASARGS
 # define CxHASARGS(C) ((C)->blk_sub.hasargs)
 #endif
@@ -1249,7 +1253,7 @@ done:
 
 #endif /* SU_UPLEVEL_HIJACKS_RUNOPS */
 
-#define su_at_underscore(C) AvARRAY(AvARRAY(CvPADLIST(C))[CvDEPTH(C)])[0]
+#define su_at_underscore(C) AvARRAY(PADLIST_ARRAY(CvPADLIST(C))[CvDEPTH(C)])[0]
 
 STATIC void su_uplevel_restore(pTHX_ void *sus_) {
  su_uplevel_ud *sud = sus_;