This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Only compile workaround on platforms needing it
authorKarl Williamson <khw@cpan.org>
Thu, 6 Apr 2023 22:39:23 +0000 (16:39 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 12 Jul 2023 12:12:43 +0000 (06:12 -0600)
commit7ac6026db34aa99ab325601ff6421f4f043ce997
tree195d6a2d9e8a7c4e2bc8f55dceb0689533e4a563
parentaa2db5a4d4a4d85879f111117968f7b8172e87fa
locale.c: Only compile workaround on platforms needing it

This code works around a bug on Windows with regard to localeconv().
And the bug only exists on such platforms that have thread-safety.
Prior to this commit, the code was compiled on platforms lacking
thread-safety, so was unnecessary.
locale.c