]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT
authorVincent Pit <vince@profvince.com>
Tue, 31 Mar 2015 20:18:40 +0000 (17:18 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 31 Mar 2015 20:18:40 +0000 (17:18 -0300)
Magic.xs

index 9a5a04f152334809b09ece05e18b4830fec68fd4..cf5bc21472701075610c731a660948e45cbc9404 100644 (file)
--- a/Magic.xs
+++ b/Magic.xs
 #endif
 
 #ifndef VMG_MULTIPLICITY
-# if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT)
+# if defined(MULTIPLICITY)
 #  define VMG_MULTIPLICITY 1
 # else
 #  define VMG_MULTIPLICITY 0
 # endif
 #endif
+#if VMG_MULTIPLICITY
+# ifndef PERL_IMPLICIT_CONTEXT
+#  error MULTIPLICITY builds must set PERL_IMPLICIT_CONTEXT
+# endif
+#endif
 
 #if VMG_MULTIPLICITY && defined(USE_ITHREADS) && defined(dMY_CXT) && defined(MY_CXT) && defined(START_MY_CXT) && defined(MY_CXT_INIT) && (defined(MY_CXT_CLONE) || defined(dMY_CXT_SV))
 # define VMG_THREADSAFE 1