From 00893e79fc62966067af1a106567db96bd170338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 3 Mar 2024 19:11:32 +0100 Subject: New upstream version 1.2 --- lib/unilbrk/u32-width-linebreaks.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/unilbrk/u32-width-linebreaks.c') diff --git a/lib/unilbrk/u32-width-linebreaks.c b/lib/unilbrk/u32-width-linebreaks.c index 554ef915..c731ff5e 100644 --- a/lib/unilbrk/u32-width-linebreaks.c +++ b/lib/unilbrk/u32-width-linebreaks.c @@ -1,5 +1,5 @@ /* Line breaking of UTF-32 strings. - Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2024 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This file is free software. @@ -116,7 +116,10 @@ u32_width_linebreaks_internal (const uint32_t *s, size_t n, return last_column + piece_width; } -#undef u32_width_linebreaks +#if defined IN_LIBUNISTRING +/* For backward compatibility with older versions of libunistring. */ + +# undef u32_width_linebreaks int u32_width_linebreaks (const uint32_t *s, size_t n, @@ -129,6 +132,8 @@ u32_width_linebreaks (const uint32_t *s, size_t n, o, encoding, -1, p); } +#endif + int u32_width_linebreaks_v2 (const uint32_t *s, size_t n, int width, int start_column, int at_end_columns, -- cgit v1.2.3