summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-09-02 07:34:28 -0600
committerKarl Williamson <khw@cpan.org>2022-09-09 12:26:40 -0600
commit5e395a7af03c83ac012073ec7e17fd26f27bfa59 (patch)
tree5d49d3f9c89a4ca296853fba02fdcb0f6eb8bfd2 /makedef.pl
parentd94aa97e72e6998a85674583fa0859e2a3a7fa42 (diff)
downloadperl-5e395a7af03c83ac012073ec7e17fd26f27bfa59.tar.gz
locale.c: Move #define to perl.h; use it elsewhere
Rather than recalculate this combined conditional, do it once in perl.h.
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/makedef.pl b/makedef.pl
index d28bb26341..6d227d44ff 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -157,6 +157,11 @@ elsif ( ($define{USE_LOCALE_THREADS} || $define{USE_THREAD_SAFE_LOCALE})
$define{USE_POSIX_2008_LOCALE} = 1 if $define{HAS_POSIX_2008_LOCALE};
}
+if ( ($define{USE_POSIX_2008_LOCALE} && ! $define{HAS_QUERYLOCALE}))
+{
+ $define{USE_PL_CURLOCALES} = 1;
+}
+
if ( $ARGS{PLATFORM} eq 'win32'
&& $define{USE_THREAD_SAFE_LOCALE}
&& $cctype < 140)
@@ -416,7 +421,7 @@ unless ($define{USE_POSIX_2008_LOCALE})
PL_underlying_numeric_obj
);
}
-unless ($define{USE_POSIX_2008_LOCALE} && ! $define{USE_QUERY_LOCALE})
+unless ($define{USE_PL_CURLOCALES})
{
++$skip{$_} foreach qw(
PL_curlocales