diff options
author | Karl Williamson <khw@cpan.org> | 2018-03-09 12:06:30 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-03-12 10:22:01 -0600 |
commit | 39e69e777b8acb3d8408d75aa0ba12fa6f7db35e (patch) | |
tree | 9af3117f843c6c15e687552c2988c74757c7900b /perlvars.h | |
parent | 1b6cb30eab88d60350ddd3276647739c0f1ce888 (diff) | |
download | perl-39e69e777b8acb3d8408d75aa0ba12fa6f7db35e.tar.gz |
Don't create locale object unless threaded
PL_C_locale_obj is now only created on threaded builds on systems with
POSIX 2008. On unthreaded builds, we really should continue to use the
old tried and true library calls.
Diffstat (limited to 'perlvars.h')
-rw-r--r-- | perlvars.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perlvars.h b/perlvars.h index 0f2e3475d3..d3275835dc 100644 --- a/perlvars.h +++ b/perlvars.h @@ -105,11 +105,7 @@ PERLVAR(G, lc_numeric_mutex, perl_mutex) /* Mutex for switching LC_NUMERIC */ # endif #endif -/* Proxy for HAS_POSIX_2008_LOCALE, since that is not defined in time for this */ -#if defined(HAS_NEWLOCALE) \ - && defined(HAS_FREELOCALE) \ - && defined(HAS_USELOCALE) \ - && ! defined(NO_POSIX_2008_LOCALE) +#ifdef USE_POSIX_2008_LOCALE PERLVAR(G, C_locale_obj, locale_t) #endif |