mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
No need to use locale_r with thread-safe locales
These use a completely different mechanism.
This commit is contained in:
parent
819e188335
commit
95fb10e3eb
6
reentr.h
6
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).
|
||||
|
||||
@ -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).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user