From: Vincent Pit Date: Sat, 5 Jul 2008 11:46:57 +0000 (+0200) Subject: Remove PERL_API_* macros X-Git-Tag: v0.19~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=9c3bb4de5a4ce520d4669d5f6ff75bece8458fa5;p=perl%2Fmodules%2FVariable-Magic.git Remove PERL_API_* macros --- diff --git a/Magic.xs b/Magic.xs index 4e62500..e0e425c 100644 --- a/Magic.xs +++ b/Magic.xs @@ -18,10 +18,6 @@ #define PERL_VERSION_LE(R, V, S) (PERL_REVISION < (R) || (PERL_REVISION == (R) && (PERL_VERSION < (V) || (PERL_VERSION == (V) && (PERL_SUBVERSION <= (S)))))) -#define PERL_API_VERSION_GE(R, V, S) (PERL_API_REVISION > (R) || (PERL_API_REVISION == (R) && (PERL_API_VERSION > (V) || (PERL_API_VERSION == (V) && (PERL_API_SUBVERSION >= (S)))))) - -#define PERL_API_VERSION_LE(R, V, S) (PERL_API_REVISION < (R) || (PERL_API_REVISION == (R) && (PERL_API_VERSION < (V) || (PERL_API_VERSION == (V) && (PERL_API_SUBVERSION <= (S)))))) - #ifndef VMG_PERL_PATCHLEVEL # ifdef PERL_PATCHNUM # define VMG_PERL_PATCHLEVEL PERL_PATCHNUM @@ -603,7 +599,7 @@ STATIC int vmg_wizard_free(pTHX_ SV *wiz, MAGIC *mg) { w = SV2MGWIZ(wiz); SvREFCNT_inc(wiz); /* Fake survival - it's gonna be deleted anyway */ -#if PERL_API_VERSION_GE(5, 9, 5) +#if PERL_VERSION_GE(5, 9, 5) SvREFCNT_inc(wiz); /* One more push */ #endif if (hv_delete(MY_CXT.wizz, buf, sprintf(buf, "%u", w->sig), 0)) {