summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Mehnert <frank.mehnert@kernkonzept.com>2025-01-06 08:26:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-01-06 10:15:05 +0100
commit1377a5a87093fc90bdd23e9c8156aeb195b54649 (patch)
treefd9bcfbe86ce71c7f3b06529b98f421dadee848d
parent34f10c209db28c136e6ed6bc5f001785558f2863 (diff)
uclibc: prevent warning about declaring an unused function
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
-rw-r--r--libc/stdlib/stdlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c
index f5936630c..c45dd53a5 100644
--- a/libc/stdlib/stdlib.c
+++ b/libc/stdlib/stdlib.c
@@ -822,6 +822,7 @@ libc_hidden_def(_stdlib_mb_cur_max)
#endif
+#if defined(L_mblen) || defined(L_mbtowc) || defined(L_wctomb)
#ifdef __UCLIBC_HAS_LOCALE__
/*
* The following function return 1 if the encoding is stateful, 0 if stateless.
@@ -844,6 +845,7 @@ static __always_inline int is_stateful(unsigned char encoding)
#else
#define is_stateful(encoding) 0
#endif
+#endif
/**********************************************************************/
#ifdef L_mblen