summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-02-06 11:53:10 -0700
committerKarl Williamson <khw@cpan.org>2019-02-06 11:59:42 -0700
commit1c0e67b56793725082a7f82517b70b287254a52c (patch)
tree070649f81ca458e0518f1131f7e69f7127b53c09 /locale.c
parent0c0c3518376d64d0be0faeacd283971b391b560a (diff)
downloadperl-1c0e67b56793725082a7f82517b70b287254a52c.tar.gz
locale.c: Fix compilation error
This code would fail to require if Configure had ccflags=-DNO_LOCALE
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/locale.c b/locale.c
index 07e5525c10..e7348e1c78 100644
--- a/locale.c
+++ b/locale.c
@@ -4334,7 +4334,8 @@ S_print_collxfrm_input_and_return(pTHX_
# endif /* DEBUGGING */
#endif /* USE_LOCALE_COLLATE */
-#ifdef DEBUGGING
+#ifdef USE_LOCALE
+# ifdef DEBUGGING
STATIC void
S_print_bytes_for_locale(pTHX_
@@ -4371,9 +4372,7 @@ S_print_bytes_for_locale(pTHX_
}
}
-#endif /* #ifdef DEBUGGING */
-
-#ifdef USE_LOCALE
+# endif /* #ifdef DEBUGGING */
STATIC const char *
S_switch_category_locale_to_template(pTHX_ const int switch_category, const int template_category, const char * template_locale)