No need to use locale_r with thread-safe locales

These use a completely different mechanism.
This commit is contained in:
Karl Williamson 2020-03-10 15:28:38 -06:00
parent 819e188335
commit 95fb10e3eb
2 changed files with 12 additions and 0 deletions

View File

@ -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).

View File

@ -91,6 +91,12 @@ print $h <<EOF;
#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).