summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-11-30 09:25:52 -0700
committerKarl Williamson <khw@cpan.org>2020-12-04 14:43:12 -0700
commit9289d4dc7a3d24b20c6e25045e687321ee3e8faf (patch)
tree502f80af81d77eada22da710e52353700b66d362 /locale.c
parentb96bd7bfd7bbd0ba78cbebd0f4437bef81209655 (diff)
downloadperl-9289d4dc7a3d24b20c6e25045e687321ee3e8faf.tar.gz
locale.c: Fix typo in #ifdef
This misspelling led to the code assuming that the platform didn't have a feature that, if used, would result in faster execution.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index 9500ab7960..5970423404 100644
--- a/locale.c
+++ b/locale.c
@@ -2621,7 +2621,7 @@ S_my_nl_langinfo(const int item, bool toggle)
#if defined(HAS_NL_LANGINFO) /* nl_langinfo() is available. */
# if ! defined(HAS_THREAD_SAFE_NL_LANGINFO_L) \
|| ! defined(HAS_POSIX_2008_LOCALE) \
- || ! defined(DUPLOCALE)
+ || ! defined(HAS_DUPLOCALE)
/* Here, use plain nl_langinfo(), switching to the underlying LC_NUMERIC
* for those items dependent on it. This must be copied to a buffer before