X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=malloc.c;h=dc5a69f383ade167471fe6e64098797f1407a04b;hb=9394203c9c91af30a21f8e1e6ad98183a3989990;hp=1bd777a8af65971dee6f2c9e1afdadc8023f87f5;hpb=cea2e8a9dd23747fd2b66edc86c58c64e9970321;p=p5sagit%2Fp5-mst-13.2.git diff --git a/malloc.c b/malloc.c index 1bd777a..dc5a69f 100644 --- a/malloc.c +++ b/malloc.c @@ -284,6 +284,9 @@ # define dTHX extern int Perl___notused # define WITH_THX(s) s # endif +# ifndef PERL_GET_INTERP +# define PERL_GET_INTERP PL_curinterp +# endif #endif #ifndef MUTEX_LOCK @@ -308,7 +311,7 @@ #ifdef DEBUGGING # undef DEBUG_m -# define DEBUG_m(a) if (PL_debug & 128) a +# define DEBUG_m(a) if (PERL_GET_INTERP && PL_debug & 128) a #endif /*