From: Vincent Pit Date: Fri, 10 Oct 2008 16:55:37 +0000 (+0200) Subject: Only build clone functions when VMG_THREADSAFE is set X-Git-Tag: v0.23~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=3093c3e9e2f9766cc1e9bd003d936b7742a3ac81;p=perl%2Fmodules%2FVariable-Magic.git Only build clone functions when VMG_THREADSAFE is set --- diff --git a/Magic.xs b/Magic.xs index 3622e90..e17a267 100644 --- a/Magic.xs +++ b/Magic.xs @@ -72,7 +72,7 @@ # define MY_CXT_CLONE NOOP #endif -#if VMG_MULTIPLICITY +#if VMG_THREADSAFE STATIC SV *vmg_clone(pTHX_ SV *sv, tTHX owner) { #define vmg_clone(P, O) vmg_clone(aTHX_ (P), (O)) @@ -83,7 +83,7 @@ STATIC SV *vmg_clone(pTHX_ SV *sv, tTHX owner) { return sv_dup(sv, ¶m); } -#endif /* VMG_MULTIPLICITY */ +#endif /* VMG_THREADSAFE */ /* --- Compatibility ------------------------------------------------------- */ @@ -800,7 +800,7 @@ STATIC SV *vmg_wizard_wiz(pTHX_ SV *wiz) { w->cb_ ## N = NULL; \ } -#if VMG_MULTIPLICITY +#if VMG_THREADSAFE #define VMG_CLONE_CB(N) \ z->cb_ ## N = (w->cb_ ## N) ? newRV_noinc(vmg_clone(SvRV(w->cb_ ## N), \ @@ -845,7 +845,7 @@ STATIC MGWIZ *vmg_wizard_clone(pTHX_ const MGWIZ *w) { return z; } -#endif /* VMG_MULTIPLICITY */ +#endif /* VMG_THREADSAFE */ /* --- XS ------------------------------------------------------------------ */