summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-07-25 12:46:00 -0600
committerKarl Williamson <khw@cpan.org>2017-08-12 22:53:11 -0600
commit5acc3fa5267fc7ad812f1bcfa7638acb4fd45c13 (patch)
tree83a0d820cf768e5c31939b47a825af45d8da632c /perl.c
parentf1d2176bc7ecf5a51b9faeb6e2a2b2e6c900283e (diff)
downloadperl-5acc3fa5267fc7ad812f1bcfa7638acb4fd45c13.tar.gz
Initialize locale object even in unthreaded perls
This commit will now initialize the thread-safe C locale object if the POSIX 2008 functions are available, regardless of whether the perl is threaded or not. This will allow for a future commit that uses them, and which is a win on unthreaded builds.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 6525f46dcd..3ef2cb0ffd 100644
--- a/perl.c
+++ b/perl.c
@@ -456,7 +456,7 @@ perl_construct(pTHXx)
PL_WB_invlist = _new_invlist_C_array(_Perl_WB_invlist);
PL_LB_invlist = _new_invlist_C_array(_Perl_LB_invlist);
PL_Assigned_invlist = _new_invlist_C_array(Assigned_invlist);
-#ifdef USE_POSIX_2008_LOCALE
+#ifdef HAS_POSIX_2008_LOCALE
PL_C_locale_obj = newlocale(LC_ALL_MASK, "C", NULL);
#endif