diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-27 19:18:13 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-30 14:20:06 -0700 |
commit | fd639d5f1b8957c2c5b2eaabfa667766e1b1e28a (patch) | |
tree | c50ef6081212feb15134e127d7c2e57adc1c2992 /locale.c | |
parent | 65c15174221994931f68592a00b0c4d1733229d8 (diff) | |
download | perl-fd639d5f1b8957c2c5b2eaabfa667766e1b1e28a.tar.gz |
locale.c: Use proper #ifdef to enable behavior
This changes to use USE_POSIX_2008_LOCALE instead of
HAS_POSIX_2008_LOCALE. Rarely do they differ, but someone may choose to
configure their installation to not use these more modern functions,
even if available, perhaps because they're buggy on that system.
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5274,9 +5274,9 @@ Perl_my_strerror(pTHX_ const int errnum) Safefree(save_locale); } -# elif defined(HAS_POSIX_2008_LOCALE) \ - && defined(HAS_STRERROR_L) \ - && defined(HAS_DUPLOCALE) +# elif defined(USE_POSIX_2008_LOCALE) \ + && defined(HAS_STRERROR_L) \ + && defined(HAS_DUPLOCALE) /* This function is also trivial if we don't have to worry about thread * safety and have strerror_l(), as it handles the switch of locales so we |