summaryrefslogtreecommitdiff
path: root/reentr.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-10 15:28:38 -0600
committerKarl Williamson <khw@cpan.org>2020-07-30 16:37:34 -0600
commit95fb10e3ebf3fdbf96dcdfc0451fb783423445aa (patch)
treea97197d6192af4aad8de08594a73115e39308a38 /reentr.h
parent819e1883356eee77ec1fb6bec37d8a160a85ee37 (diff)
downloadperl-95fb10e3ebf3fdbf96dcdfc0451fb783423445aa.tar.gz
No need to use locale_r with thread-safe locales
These use a completely different mechanism.
Diffstat (limited to 'reentr.h')
-rw-r--r--reentr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/reentr.h b/reentr.h
index cf41900683..78b8518710 100644
--- a/reentr.h
+++ b/reentr.h
@@ -41,6 +41,12 @@
#ifdef USE_REENTRANT_API
+/* For thread-safe builds, alternative methods are used to make calls to this
+ * safe. */
+#ifdef USE_THREAD_SAFE_LOCALE
+# undef HAS_SETLOCALE_R
+#endif
+
/* Deprecations: some platforms have the said reentrant interfaces
* but they are declared obsolete and are not to be used. Often this
* means that the platform has threadsafed the interfaces (hopefully).