USE_THREADS and USE_ITHREADS are never true at the same time
Artur Bergman [Sat, 18 Aug 2001 11:45:16 +0000 (11:45 +0000)]
p4raw-id: //depot/perl@11715

perl.h

diff --git a/perl.h b/perl.h
index 36b1939..08dbd2a 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -439,7 +439,7 @@ register struct op *Perl_op asm(stringify(OP_IN_REGISTER));
 #endif
 
 /* Use the reentrant APIs like localtime_r and getpwent_r */
-#if defined(USE_THREADS) && defined(USE_ITHREADS) && !defined(USE_REENTRANT_API)
+#if (defined(USE_THREADS) || defined(USE_ITHREADS)) && !defined(USE_REENTRANT_API)
 #   define USE_REENTRANT_API
 #endif