summaryrefslogtreecommitdiff
path: root/intrpvar.h
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 /intrpvar.h
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 'intrpvar.h')
-rw-r--r--intrpvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intrpvar.h b/intrpvar.h
index 33d952682a..6b56971f2d 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -262,7 +262,9 @@ PERLVAR(I, exit_flags, U8) /* was exit() unexpected, etc. */
PERLVAR(I, utf8locale, bool) /* utf8 locale detected */
PERLVAR(I, in_utf8_CTYPE_locale, bool)
PERLVAR(I, in_utf8_COLLATE_locale, bool)
+#if defined(USE_ITHREADS) && ! defined(USE_THREAD_SAFE_LOCALE)
PERLVARI(I, lc_numeric_mutex_depth, int, 0) /* Emulate general semaphore */
+#endif
PERLVARA(I, locale_utf8ness, 256, char)
#ifdef USE_LOCALE_CTYPE