diff options
author | Karl Williamson <khw@cpan.org> | 2022-09-03 06:52:12 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-09-10 09:27:17 -0600 |
commit | f4fdec1fc8df1ef0400134e720b67589da5c8200 (patch) | |
tree | 5cb9224b3069d2bad8ac1aacd1a5a4766b5df41e /embed.h | |
parent | 95e4742c49bd11279dcd70828f262ea73db7633d (diff) | |
download | perl-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |