]> Savannah Git Hosting - gnulib.git/commitdiff
mcel: port to uClibc-ng
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Aug 2024 06:00:38 +0000 (23:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Aug 2024 06:00:38 +0000 (23:00 -0700)
Problem reported by Waldemar Brodkorb in:
https://lists.gnu.org/r/bug-gnulib/2024-08/msg00130.html
* lib/mcel.h (mcel_scan): Don’t treat uClibc-ng like glibc.

ChangeLog
lib/mcel.h

index 5fdae94326d2abc56b8c4eb6a5c206751e0c9b03..0bf44b8e459dc457c598c4f4fcc54113583b7d4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       mcel: port to uClibc-ng
+       Problem reported by Waldemar Brodkorb in:
+       https://lists.gnu.org/r/bug-gnulib/2024-08/msg00130.html
+       * lib/mcel.h (mcel_scan): Don’t treat uClibc-ng like glibc.
+
 2024-08-21  Bruno Haible  <bruno@clisp.org>
 
        stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl.
index 7d92d2460152bca6edb43db07a8d7a60c13f45f0..d9f8385155af7fdf050c0716851d219e1fb0366c 100644 (file)
@@ -226,7 +226,8 @@ mcel_scan (char const *p, char const *lim)
 
   /* An initial mbstate_t; initialization optimized for some platforms.
      For details about these and other platforms, see wchar.in.h.  */
-#if defined __GLIBC__ && 2 < __GLIBC__ + (2 <= __GLIBC_MINOR__)
+#if (defined __GLIBC__ && 2 < __GLIBC__ + (2 <= __GLIBC_MINOR__) \
+     && !defined __UCLIBC__)
   /* Although only a trivial optimization, it's worth it for GNU.  */
   mbstate_t mbs; mbs.__count = 0;
 #elif (defined __FreeBSD__ || defined __DragonFly__ || defined __OpenBSD__ \