summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-11-29 11:50:58 -0700
committerKarl Williamson <khw@cpan.org>2018-11-29 12:02:37 -0700
commit4d9252fd87d589cee8bbae74d7bf79cbd4d9fa1b (patch)
treebf8a6523e3d78649518f4a427f2f6b02528e0eea /locale.c
parentf32e286a94381a66b7325ec68e1c6f1eb3872277 (diff)
downloadperl-4d9252fd87d589cee8bbae74d7bf79cbd4d9fa1b.tar.gz
locale.c: Fix wrong scope of #if's
The function print_bytes_for_locale() should be defined if DEBUGGING; prior to this commit it didn't get defined unless LC_COLLATE was defined on the platform.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/locale.c b/locale.c
index c32dd3f6ed..0c94042c55 100644
--- a/locale.c
+++ b/locale.c
@@ -4303,6 +4303,10 @@ S_print_collxfrm_input_and_return(pTHX_
PerlIO_printf(Perl_debug_log, "'\n");
}
+# endif /* DEBUGGING */
+#endif /* USE_LOCALE_COLLATE */
+#ifdef DEBUGGING
+
STATIC void
S_print_bytes_for_locale(pTHX_
const char * const s,
@@ -4338,8 +4342,7 @@ S_print_bytes_for_locale(pTHX_
}
}
-# endif /* #ifdef DEBUGGING */
-#endif /* USE_LOCALE_COLLATE */
+#endif /* #ifdef DEBUGGING */
#ifdef USE_LOCALE