From: Gurusamy Sarathy Date: Thu, 23 Aug 2001 03:58:58 +0000 (+0000) Subject: fix broken windows build X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d80aa5594cb0736b9d4bd083ce9a6fa2f0fea457;p=p5sagit%2Fp5-mst-13.2.git fix broken windows build p4raw-id: //depot/perl@11731 --- diff --git a/perl.h b/perl.h index a85cbf6..c540b39 100644 --- a/perl.h +++ b/perl.h @@ -439,18 +439,11 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER)); #endif /* Use the reentrant APIs like localtime_r and getpwent_r */ -#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) +/* Win32 has naturally threadsafe libraries, no need to use any _r variants. */ +#if defined(USE_ITHREADS) && !defined(USE_REENTRANT_API) && !defined(WIN32) # define USE_REENTRANT_API #endif -/* Win32 has naturally threadsafe libraries, - * no need to use any _r variants. */ -#ifdef USE_REENTRANT_API -# ifdef WIN32 -# undef USE_REEENTRANT_API -# endif -#endif - /* HP-UX 10.X CMA (Common Multithreaded Architecure) insists that pthread.h must be included before all other header files. */