summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-12-08 06:50:19 -0700
committerYves Orton <demerphq@gmail.com>2022-12-10 10:28:11 +0100
commit84fa78b4832e64bc0dfc0ea25843d48b4d9782c7 (patch)
tree34f4f2faae90de88d7554aa7d2b48391d64bb94e
parentc5ceea5ab0f7a72e1d18c633fecc6c1899fa0468 (diff)
downloadperl-84fa78b4832e64bc0dfc0ea25843d48b4d9782c7.tar.gz
makedef.pl: Properly define a hash element
I had been so used to working lately with C preprocessor directives that I used the same paradigm in Perl without noticing. If 'warnings' had been on, it would have caught this (the previous commit now turns them on).
-rw-r--r--makedef.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/makedef.pl b/makedef.pl
index d68e9af57a..ffdf3e17a8 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -195,7 +195,7 @@ if ($define{MULTIPLICITY} && ( $define{USE_POSIX_2008_LOCALE}
|| ( $define{WIN32}
&& $define{USE_THREAD_SAFE_LOCALE})))
{
- $define{USE_PERL_SWITCH_LOCALE_CONTEXT}
+ $define{USE_PERL_SWITCH_LOCALE_CONTEXT} = 1;
}
# perl.h logic duplication ends