]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Fix building with the newest version of 5.17.4
authorFather Chrysostomos <sprout@cpan.org>
Fri, 7 Sep 2012 12:28:05 +0000 (14:28 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 7 Sep 2012 12:28:05 +0000 (14:28 +0200)
Upper.xs

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