From 41ffca9515f41dc46cc2e0296b67db431cb075fc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 3 Apr 2010 14:34:57 +0200 Subject: [PATCH] stdio: Make C++ tests work on mingw. --- ChangeLog | 6 ++++++ lib/stdio.in.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 52cac6da50..f39ca5a1ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-03 Bruno Haible + + stdio: Make C++ tests work on mingw. + * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system + does not declare the function. + 2010-04-03 Bruno Haible ftello: Fix C++ test error on mingw. diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 58eb4f0b2a..598b9d83b5 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -533,7 +533,9 @@ _GL_FUNCDECL_SYS (getline, ssize_t, _GL_CXXALIAS_SYS (getline, ssize_t, (char **lineptr, size_t *linesize, FILE *stream)); # endif +# if @HAVE_DECL_GETLINE@ _GL_CXXALIASWARN (getline); +# endif #elif defined GNULIB_POSIXCHECK # undef getline # if HAVE_RAW_DECL_GETLINE -- 2.30.2