]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Don't compile su_uplevel_storage_delete() before perl 5.13.7
authorVincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 02:30:16 +0000 (23:30 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 02:30:20 +0000 (23:30 -0300)
As it is unused on these older perls.

Upper.xs

index 272028d428c2594c001bba4ffbdef63dae2dbec7..7cbbaa2da3fe315efbbdf62c4cbd1e30265272b2 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -1381,6 +1381,8 @@ static su_uplevel_ud *su_uplevel_storage_new(pTHX_ I32 cxix) {
  return sud;
 }
 
+#if SU_HAS_PERL(5, 13, 7)
+
 static void su_uplevel_storage_delete(pTHX_ su_uplevel_ud *sud) {
 #define su_uplevel_storage_delete(S) su_uplevel_storage_delete(aTHX_ (S))
  dMY_CXT;
@@ -1408,6 +1410,8 @@ static void su_uplevel_storage_delete(pTHX_ su_uplevel_ud *sud) {
  }
 }
 
+#endif
+
 static int su_uplevel_goto_static(const OP *o) {
  for (; o; o = OpSIBLING(o)) {
   /* goto ops are unops with kids. */