diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-10 15:28:38 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-30 16:37:34 -0600 |
commit | 95fb10e3ebf3fdbf96dcdfc0451fb783423445aa (patch) | |
tree | a97197d6192af4aad8de08594a73115e39308a38 | |
parent | 819e1883356eee77ec1fb6bec37d8a160a85ee37 (diff) | |
download | perl-95fb10e3ebf3fdbf96dcdfc0451fb783423445aa.tar.gz |
No need to use locale_r with thread-safe locales
These use a completely different mechanism.
-rw-r--r-- | reentr.h | 6 | ||||
-rw-r--r-- | regen/reentr.pl | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -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). diff --git a/regen/reentr.pl b/regen/reentr.pl index f2c1d7cf3c..f5788c7ad9 100644 --- a/regen/reentr.pl +++ b/regen/reentr.pl @@ -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). |