]> Savannah Git Hosting - gnulib.git/commitdiff
vasnprintf: Fix compilation error on Android NDK r26b.
authorBruno Haible <bruno@clisp.org>
Wed, 25 Jan 2023 08:53:21 +0000 (09:53 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Jan 2023 14:22:31 +0000 (15:22 +0100)
Reported by Po Lu <luangruo@yahoo.com>.

* lib/vasnprintf.c: Include <wchar.h>.

ChangeLog
lib/vasnprintf.c

index 917bb85017b8916b572c6aa349fe5cf28f9b8905..ce836cb9a84e507629d1df9d77c1795182b9988b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-25  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix compilation error on Android NDK r26b.
+       Reported by Po Lu <luangruo@yahoo.com>.
+       * lib/vasnprintf.c: Include <wchar.h>.
+
 2023-01-25  Nick Bowler  <nbowler@draconx.ca>  (tiny change)
 
        threadlib: Fix support for Solaris 9 and older.
index ab11ad026ed1b5d224dd71a8c880a30d859339cb..277c39e3e07a9ecc1c35e0158b278521e4c5241c 100644 (file)
@@ -83,6 +83,7 @@
 #include <stdio.h>      /* snprintf(), sprintf() */
 #include <stdlib.h>     /* abort(), malloc(), realloc(), free() */
 #include <string.h>     /* memcpy(), strlen() */
+#include <wchar.h>      /* mbstate_t, mbrtowc(), mbrlen(), wcrtomb() */
 #include <errno.h>      /* errno */
 #include <limits.h>     /* CHAR_BIT */
 #include <float.h>      /* DBL_MAX_EXP, LDBL_MAX_EXP */