summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 4d3861d310..31120f7c94 100644
--- a/perl.h
+++ b/perl.h
@@ -1223,7 +1223,7 @@ violations are fatal.
# endif
# if ! defined(HAS_SETLOCALE) && defined(HAS_POSIX_2008_LOCALE)
# define USE_POSIX_2008_LOCALE
-# ifndef USE_THREAD_SAFE_LOCALE
+# ifdef USE_LOCALE_THREADS
# define USE_THREAD_SAFE_LOCALE
# endif
/* If compiled with
@@ -7030,7 +7030,7 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
} \
} STMT_END
-# ifndef USE_THREAD_SAFE_LOCALE
+# if defined(USE_THREADS) && ! defined(USE_THREAD_SAFE_LOCALE)
/* By definition, a thread-unsafe locale means we need a critical
* section. */