diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 |
commit | 00893e79fc62966067af1a106567db96bd170338 (patch) | |
tree | 52b35cd0b42ca28e62a2ffbecade2e13dd8332cf /lib/unilbrk/ulc-possible-linebreaks.c | |
parent | 26112352a774737e1ce5580c93654a26c1e82b39 (diff) |
New upstream version 1.2upstream/1.2
Diffstat (limited to 'lib/unilbrk/ulc-possible-linebreaks.c')
-rw-r--r-- | lib/unilbrk/ulc-possible-linebreaks.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/unilbrk/ulc-possible-linebreaks.c b/lib/unilbrk/ulc-possible-linebreaks.c index 7b81685e..4be1f987 100644 --- a/lib/unilbrk/ulc-possible-linebreaks.c +++ b/lib/unilbrk/ulc-possible-linebreaks.c @@ -1,5 +1,5 @@ /* Line breaking of 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 <bruno@clisp.org>, 2001. This file is free software. @@ -132,7 +132,10 @@ ulc_possible_linebreaks_internal (const char *s, size_t n, const char *encoding, } } -#undef ulc_possible_linebreaks +#if defined IN_LIBUNISTRING +/* For backward compatibility with older versions of libunistring. */ + +# undef ulc_possible_linebreaks void ulc_possible_linebreaks (const char *s, size_t n, const char *encoding, @@ -141,6 +144,8 @@ ulc_possible_linebreaks (const char *s, size_t n, const char *encoding, ulc_possible_linebreaks_internal (s, n, encoding, -1, p); } +#endif + void ulc_possible_linebreaks_v2 (const char *s, size_t n, const char *encoding, char *p) |