summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-09-03 06:52:12 -0600
committerKarl Williamson <khw@cpan.org>2022-09-10 09:27:17 -0600
commitf4fdec1fc8df1ef0400134e720b67589da5c8200 (patch)
tree5cb9224b3069d2bad8ac1aacd1a5a4766b5df41e /embed.h
parent95e4742c49bd11279dcd70828f262ea73db7633d (diff)
downloadperl-f4fdec1fc8df1ef0400134e720b67589da5c8200.tar.gz
locale.c: Silence compiler warning about S_new_numeric
This function is not used unless LC_NUMERIC is enabled, so need not be defined unless that is true.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index 7b88a0940f..c5be35501b 100644
--- a/embed.h
+++ b/embed.h
@@ -1739,10 +1739,12 @@
#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)
-#define new_numeric(a) S_new_numeric(aTHX_ a)
#define save_to_buffer S_save_to_buffer
#define setlocale_failure_panic_i(a,b,c,d,e) S_setlocale_failure_panic_i(aTHX_ a,b,c,d,e)
#define stdize_locale(a,b,c,d,e) S_stdize_locale(aTHX_ a,b,c,d,e)
+# if defined(USE_LOCALE_NUMERIC)
+#define new_numeric(a) S_new_numeric(aTHX_ a)
+# endif
# if defined(USE_POSIX_2008_LOCALE)
#define emulate_setlocale_i(a,b,c,d) S_emulate_setlocale_i(aTHX_ a,b,c,d)
#define my_querylocale_i(a) S_my_querylocale_i(aTHX_ a)