summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-03-08 04:31:18 -0700
committerKarl Williamson <khw@cpan.org>2022-09-09 12:26:40 -0600
commit4bd493020b770cbf4057bf51d38924bf4bb68222 (patch)
treecf84147a420bfe04e99f82b331aa2a8dc42fadf9 /perl.h
parent42195c1c1c462c634251e0b1b65d8b30e661ca42 (diff)
downloadperl-4bd493020b770cbf4057bf51d38924bf4bb68222.tar.gz
perl.h: Remove NL_LANGINFO_LOCK
This is needed in precisely one place in the code, so move it to there.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/perl.h b/perl.h
index 953dd8b6cf..430c1a2ef8 100644
--- a/perl.h
+++ b/perl.h
@@ -7150,9 +7150,7 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
&& ( ! defined(USE_THREAD_SAFE_LOCALE) \
|| ( defined(HAS_LOCALECONV) \
&& ( ! defined(HAS_LOCALECONV_L) \
- || defined(TS_W32_BROKEN_LOCALECONV))) \
- || ( defined(HAS_NL_LANGINFO) \
- && ! defined(HAS_THREAD_SAFE_NL_LANGINFO_L))))
+ || defined(TS_W32_BROKEN_LOCALECONV)))))
/* The whole expression just above was complemented, so here we have no need
* for thread synchronization, most likely it would be that this isn't a
@@ -7161,8 +7159,6 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
# define LOCALECONV_UNLOCK NOOP
# define LOCALE_READ_LOCK NOOP
# define LOCALE_READ_UNLOCK NOOP
-# define NL_LANGINFO_LOCK NOOP
-# define NL_LANGINFO_UNLOCK NOOP
# define SETLOCALE_LOCK NOOP
# define SETLOCALE_UNLOCK NOOP
#else
@@ -7206,11 +7202,6 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
# define LOCALECONV_LOCK LOCALE_LOCK_(0)
# define LOCALECONV_UNLOCK LOCALE_UNLOCK_
# endif
-# if defined(HAS_NL_LANGINFO) && ( ! defined(HAS_THREAD_SAFE_NL_LANGINFO_L) \
- || ! defined(USE_POSIX_2008_LOCALE))
-# define NL_LANGINFO_LOCK LOCALE_LOCK_(0)
-# define NL_LANGINFO_UNLOCK LOCALE_UNLOCK_
-# endif
# if defined(USE_THREAD_SAFE_LOCALE)
/* There may be instance core where we this is invoked yet should do