summaryrefslogtreecommitdiff
path: root/sv.c
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 /sv.c
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 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index b4903dee81..5636551575 100644
--- a/sv.c
+++ b/sv.c
@@ -15905,7 +15905,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_subname = sv_dup_inc(proto_perl->Isubname, param);
-#if defined(USE_POSIX_2008_LOCALE) && ! defined(USE_QUERYLOCALE)
+#ifdef USE_PL_CURLOCALES
for (i = 0; i < (int) C_ARRAY_LENGTH(PL_curlocales); i++) {
PL_curlocales[i] = SAVEPV(proto_perl->Icurlocales[i]);
}