X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl.h;h=2fffc93b5b6e05d6719bd2b810f01e5bdd7e423a;hb=f500e21038bb585503c82fdd93a02341caeb6432;hp=4d9a94edc566bbf56202e8c035761d14d6ed6d64;hpb=f51dccfda70076767ac517953f3cc5b809d6d728;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl.h b/perl.h index 4d9a94e..2fffc93 100644 --- a/perl.h +++ b/perl.h @@ -42,6 +42,10 @@ /* See L for detailed notes on * PERL_IMPLICIT_CONTEXT and PERL_IMPLICIT_SYS */ +/* Note that from here --> to <-- the same logic is + * repeated in makedef.pl, so be certain to update + * both places when editing. */ + #ifdef PERL_IMPLICIT_SYS /* PERL_IMPLICIT_SYS implies PerlMemShared != PerlMem so use slab allocator to avoid lots of MUTEX overhead @@ -69,6 +73,8 @@ # endif #endif +/* <--- here ends the logic shared by perl.h and makedef.pl */ + #ifdef PERL_IMPLICIT_CONTEXT # ifdef USE_5005THREADS struct perl_thread; @@ -330,7 +336,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER)); /* Use the reentrant APIs like localtime_r and getpwent_r */ /* Win32 has naturally threadsafe libraries, no need to use any _r variants. */ -#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(WIN32) +#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(WIN32) && !defined(__APPLE__) # define USE_REENTRANT_API #endif