stdio: Make C++ tests work on mingw.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Apr 2010 12:34:57 +0000 (14:34 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Apr 2010 13:04:51 +0000 (15:04 +0200)
ChangeLog
lib/stdio.in.h

index 52cac6d..f39ca5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * lib/stdio.in.h (ftello): Use modern idiom.
        * lib/ftello.c (ftello): Renamed from rpl_ftello.
index 58eb4f0..598b9d8 100644 (file)
@@ -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