summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-27 19:18:13 -0700
committerKarl Williamson <khw@cpan.org>2019-11-30 14:20:06 -0700
commitfd639d5f1b8957c2c5b2eaabfa667766e1b1e28a (patch)
treec50ef6081212feb15134e127d7c2e57adc1c2992 /locale.c
parent65c15174221994931f68592a00b0c4d1733229d8 (diff)
downloadperl-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locale.c b/locale.c
index 54b51ff920..482a533f86 100644
--- a/locale.c
+++ b/locale.c
@@ -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