]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
Only build clone functions when VMG_THREADSAFE is set
authorVincent Pit <vince@profvince.com>
Fri, 10 Oct 2008 16:55:37 +0000 (18:55 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 10 Oct 2008 16:55:37 +0000 (18:55 +0200)
Magic.xs

index 3622e9031d715785621310644fcdc6d6e52d3c3e..e17a2677d6ed41bd6ce6cb6cc22556fc62bb216d 100644 (file)
--- 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, &param);
 }
 
-#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 ------------------------------------------------------------------ */