瀏覽代碼

uclibc: prevent warning about declaring an unused function

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Frank Mehnert 9 月之前
父節點
當前提交
1377a5a870
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/stdlib/stdlib.c

+ 2 - 0
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