From 7c71ddadecc070d80d6335dc58ce6790ad478f58 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 7 Feb 2023 16:10:36 +0100 Subject: [PATCH] linebreak: Avoid implicit declaration of u8_mbtouc_unsafe function GNULIB_UNISTR_U8_MBTOUC_UNSAFE tells the bundled unistr.h to provide a function prototype for u8_mbtouc_unsafe. This prevents build failures with future compilers which do not support implicit function declarations. Upstream gnulib has split the linebreak module into multiple parts; it is hard to tell if it still has the same issue. --- src/linebreak/linebreak.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linebreak/linebreak.c b/src/linebreak/linebreak.c index 6b0bf66..1fb2a29 100644 --- a/src/linebreak/linebreak.c +++ b/src/linebreak/linebreak.c @@ -35,6 +35,7 @@ along with this program. If not, see . */ //#include "c-ctype.h" #include "ctype.h" #include "xsize.h" +#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE #include "unistr.h" #include "uniwidth.h" #include "uniwidth/cjk.h"