summaryrefslogtreecommitdiff
path: root/reentr.h
diff options
context:
space:
mode:
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).