summaryrefslogtreecommitdiff
path: root/lib/stdio.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-09 03:02:08 +0100
committerBruno Haible <bruno@clisp.org>2019-12-09 03:02:08 +0100
commit253f29d8b391ebe8cea50355eda351bb7962e160 (patch)
treebef6c4e98b191c6e3dc1721560a07238adca551e /lib/stdio.in.h
parent035e545a4f4cdd1b358810b2498541159b7e6bf1 (diff)
downloadgnulib-253f29d8b391ebe8cea50355eda351bb7962e160.tar.gz
Fix compilation errors in C++ mode on Haiku.
* lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on non-glibc systems. * lib/spawn.in.h (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Likewise. * lib/stdlib.in.h (random, initstate_r, setstate_r): Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS. * lib/unistd.in.h (usleep): Likewise.
Diffstat (limited to 'lib/stdio.in.h')
-rw-r--r--lib/stdio.in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 4aea52c1a7..447a4723ab 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -1259,7 +1259,9 @@ _GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args)
_GL_CXXALIAS_SYS_CAST (vdprintf, int,
(int fd, const char *format, va_list args));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (vdprintf);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef vdprintf
# if HAVE_RAW_DECL_VDPRINTF