summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-14 21:08:54 -0600
committerKarl Williamson <khw@cpan.org>2018-03-16 14:09:42 -0600
commitbffa51e274b9427cea2942be2b0224defd7b2dac (patch)
treea5943ac0046005dff6fb942888bbb07bc7429f45 /makedef.pl
parent744ebf52f3e4ca5e41d9ce8bc68e10cae14592a0 (diff)
downloadperl-bffa51e274b9427cea2942be2b0224defd7b2dac.tar.gz
Don't include interpreter variable unless used
This adds an #ifdef around this variable, so that it isn't defined unless used. Spotted by Daniel Dragan.
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/makedef.pl b/makedef.pl
index a339059278..88273e5305 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -368,6 +368,7 @@ unless ($define{'USE_ITHREADS'}) {
PL_hints_mutex
PL_locale_mutex
PL_lc_numeric_mutex
+ PL_lc_numeric_mutex_depth
PL_my_ctx_mutex
PL_perlio_mutex
PL_stashpad
@@ -442,6 +443,7 @@ if (${^SAFE_LOCALES}) { # Don't need mutexes if have thread-safe operations
++$skip{PL_locale_mutex} unless $ARGS{PLATFORM} eq 'win32'
&& ($ARGS{CCTYPE} =~ s/MSVC//r) < 140;
++$skip{PL_lc_numeric_mutex};
+ ++$skip{PL_lc_numeric_mutex_depth};
}
unless ($define{'PERL_OP_PARENT'}) {