summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-07-13 15:30:09 +0200
committerYves Orton <demerphq@gmail.com>2022-07-15 17:25:20 +0200
commit6df0bfb668a46ee90e9ad7e8398ac7511b135dbf (patch)
treed6ecab6b2e96e9a2bb55f671c4e2c176428fc1e5 /embed.h
parent897af6bc661bbe5e3361b85654fc529a3e5c70ed (diff)
downloadperl-6df0bfb668a46ee90e9ad7e8398ac7511b135dbf.tar.gz
locale.c - silence build warning for unused S_calculate_LC_ALL()
this function is only use if USE_POSIX_2008_LOCALE is enabled
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/embed.h b/embed.h
index 4747c5a2f8..208f8d1db0 100644
--- a/embed.h
+++ b/embed.h
@@ -1483,10 +1483,19 @@
# if !(defined(PERL_USE_3ARG_SIGHANDLER))
#define sighandler Perl_sighandler
# endif
+# if !(defined(USE_POSIX_2008_LOCALE))
+# if defined(PERL_IN_LOCALE_C)
+# if defined(USE_LOCALE)
+#define setlocale_failure_panic_i(a,b,c,d,e) S_setlocale_failure_panic_i(aTHX_ a,b,c,d,e)
+# endif
+# endif
+# endif
# if !(defined(USE_QUERYLOCALE))
# if defined(PERL_IN_LOCALE_C)
# if defined(USE_LOCALE)
+# if defined(USE_POSIX_2008_LOCALE)
#define calculate_LC_ALL(a) S_calculate_LC_ALL(aTHX_ a)
+# endif
# endif
# endif
# endif
@@ -1537,13 +1546,6 @@
#define new_he() S_new_he(aTHX)
# endif
# endif
-# if !defined(USE_POSIX_2008_LOCALE)
-# if defined(PERL_IN_LOCALE_C)
-# if defined(USE_LOCALE)
-#define setlocale_failure_panic_i(a,b,c,d,e) S_setlocale_failure_panic_i(aTHX_ a,b,c,d,e)
-# endif
-# endif
-# endif
# if !defined(WIN32)
#define do_exec3(a,b,c) Perl_do_exec3(aTHX_ a,b,c)
# endif
@@ -1694,9 +1696,9 @@
# if defined(USE_POSIX_2008_LOCALE)
#define emulate_setlocale_i(a,b) S_emulate_setlocale_i(aTHX_ a,b)
#define my_querylocale_i(a) S_my_querylocale_i(aTHX_ a)
-# endif
-# if defined(USE_QUERYLOCALE)
+# if defined(USE_QUERYLOCALE)
#define calculate_LC_ALL(a) S_calculate_LC_ALL(aTHX_ a)
+# endif
# endif
# if defined(WIN32)
#define win32_setlocale(a,b) S_win32_setlocale(aTHX_ a,b)