From: Vincent Pit Date: Tue, 31 Mar 2015 20:18:40 +0000 (-0300) Subject: Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT X-Git-Tag: v0.57~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=ea4de64c75c0516d7cc92a586c9f8b76465ca130;p=perl%2Fmodules%2FVariable-Magic.git Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT --- diff --git a/Magic.xs b/Magic.xs index 9a5a04f..cf5bc21 100644 --- a/Magic.xs +++ b/Magic.xs @@ -49,12 +49,17 @@ #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