From: Vincent Pit Date: Sat, 25 Apr 2015 01:39:13 +0000 (-0300) Subject: Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT X-Git-Tag: v0.15~19 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=commitdiff_plain;h=cfd4bbeefd3356b9728b9d71ac50d6cf80375812 Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT --- diff --git a/autovivification.xs b/autovivification.xs index 4f7a212..222b3a7 100644 --- a/autovivification.xs +++ b/autovivification.xs @@ -49,12 +49,17 @@ #endif #ifndef A_MULTIPLICITY -# if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT) +# if defined(MULTIPLICITY) # define A_MULTIPLICITY 1 # else # define A_MULTIPLICITY 0 # endif #endif +#if A_MULTIPLICITY +# ifndef PERL_IMPLICIT_CONTEXT +# error MULTIPLICITY builds must set PERL_IMPLICIT_CONTEXT +# endif +#endif #ifndef tTHX # define tTHX PerlInterpreter*