stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl.
authorBruno Haible <bruno@clisp.org>
Wed, 21 Aug 2024 21:22:26 +0000 (23:22 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 21 Aug 2024 21:22:26 +0000 (23:22 +0200)
* lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/stdio.in.h

index 5b3996e920d03b489d5d8c7d4b85e3369f2bb25b..5fdae94326d2abc56b8c4eb6a5c206751e0c9b03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-21  Bruno Haible  <bruno@clisp.org>
+
+       stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl.
+       * lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
 2024-08-19  Bruno Haible  <bruno@clisp.org>
 
        hasmntopt: Add tests.
index e693fd7d0645bbdc519bfb051bbe0bde7382191f..67277d5ffe94d33e8cdad233f138f5d99562aa40 100644 (file)
@@ -646,7 +646,9 @@ _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream), _GL_ARG_NONNULL ((1)));
 #  endif
 _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (fpurge);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef fpurge
 # if HAVE_RAW_DECL_FPURGE