]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
isalnum_l: Fix errors in C++ mode.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 22:59:09 +0000 (23:59 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 22:59:09 +0000 (23:59 +0100)
* lib/ctype.in.h (isalnum_l): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.
* tests/test-ctype-h-c++.cc (isalnum_l): Fix typo.
* doc/posix-functions/isalnum_l.texi: Correct platforms list.

ChangeLog
doc/posix-functions/isalnum_l.texi
lib/ctype.in.h
tests/test-ctype-h-c++.cc

index 1e0df76df0fd844d370f3ce769d366ae49dc8af1..1d543ca251994bbae8c3fbdf5c37f4f3a38d9d98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2025-02-14  Bruno Haible  <bruno@clisp.org>
 
+       isalnum_l: Fix errors in C++ mode.
+       * lib/ctype.in.h (isalnum_l): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+       * tests/test-ctype-h-c++.cc (isalnum_l): Fix typo.
+       * doc/posix-functions/isalnum_l.texi: Correct platforms list.
+
        isalnum_l: Add tests.
        * tests/test-isalnum_l.c: New file, based on tests/test-c32isalnum.c.
        * modules/isalnum_l-tests: New file.
index 36c022369739366bd7dbd73a21d3c6f74bb154dc..8786db9a7ff951461440414b8b24f00221b164ff 100644 (file)
@@ -11,7 +11,7 @@ Portability problems fixed by Gnulib:
 @itemize
 @item
 This function is missing on many platforms:
-FreeBSD 6.0, NetBSD 5.0, OpenBSD 6.0, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 11.3, Cygwin 1.7.x, mingw, MSVC 14, Android 4.4.
+FreeBSD 9.0, NetBSD 6.1, OpenBSD 6.1, Minix 3.1.8, AIX 6.1, HP-UX 11, Solaris 11.3, Cygwin 2.5.x, mingw, MSVC 14, Android 4.4.
 @end itemize
 
 Portability problems not fixed by Gnulib:
index 1ca6437c82b737b8a6c0fa79d903b4f2eb7d52d3..231c0b6601614d6064eda4d0453d22f5d2c02711 100644 (file)
@@ -70,7 +70,9 @@ _GL_FUNCDECL_SYS (isalnum_l, int, (int c, locale_t locale),
                                   _GL_ARG_NONNULL ((2)));
 # endif
 _GL_CXXALIAS_SYS (isalnum_l, int, (int c, locale_t locale));
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (isalnum_l);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef isalnum_l
 # if HAVE_RAW_DECL_ISALNUM_L
index 99d6bd43b7a10a0b45adb6cba8a053e4b34cd3c9..981eda6671f9be5dd887e3c3704f68775176166f 100644 (file)
@@ -25,7 +25,7 @@
 
 
 #if GNULIB_TEST_ISALNUM_L
-SIGNATURE_CHECK (GNULIB_NAMESPACE::isalnum_l, int, (int, locale-t));
+SIGNATURE_CHECK (GNULIB_NAMESPACE::isalnum_l, int, (int, locale_t));
 #endif
 
 #if 0