changeset 13123:f42a08f19992

stdio: Make C++ tests work on mingw.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Apr 2010 14:34:57 +0200
parents 01741ff1a40e
children 69f0d92b5794
files ChangeLog lib/stdio.in.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+	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  <bruno@clisp.org>
 
 	ftello: Fix C++ test error on mingw.
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -533,7 +533,9 @@
 _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