summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-09-03 07:02:23 -0600
committerKarl Williamson <khw@cpan.org>2022-09-10 09:27:17 -0600
commit988faa118b300f3ea030afabdbdbe464d204ddb1 (patch)
tree7e3a4b19846a1d564727e3afb4a453b73b515745 /embed.h
parentf4fdec1fc8df1ef0400134e720b67589da5c8200 (diff)
downloadperl-988faa118b300f3ea030afabdbdbe464d204ddb1.tar.gz
locale.c: Silence compiler warning about S_mortalixzed_pv_copy
This function is not used unless locales are enabled, so need not be defined unless that is true.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index c5be35501b..daad5c2c0c 100644
--- a/embed.h
+++ b/embed.h
@@ -1730,12 +1730,12 @@
#define unshare_hek_or_pvn(a,b,c,d) S_unshare_hek_or_pvn(aTHX_ a,b,c,d)
# endif
# if defined(PERL_IN_LOCALE_C)
-#define mortalized_pv_copy(a) S_mortalized_pv_copy(aTHX_ a)
# if defined(USE_LOCALE)
#define get_category_index S_get_category_index
#define get_locale_string_utf8ness_i(a,b,c,d) S_get_locale_string_utf8ness_i(aTHX_ a,b,c,d)
#define is_codeset_name_UTF8 S_is_codeset_name_UTF8
#define is_locale_utf8(a) S_is_locale_utf8(aTHX_ a)
+#define mortalized_pv_copy(a) S_mortalized_pv_copy(aTHX_ a)
#define new_LC_ALL(a) S_new_LC_ALL(aTHX_ a)
#define new_collate(a) S_new_collate(aTHX_ a)
#define new_ctype(a) S_new_ctype(aTHX_ a)