This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libgfortran,committed] Have libgfortran.h include <stdarg.h>
- From: FX Coudert <fxcoudert at gmail dot com>
- To: GFORTRAN list <fortran at gcc dot gnu dot org>, GCC-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Jul 2007 14:05:02 +0100
- Subject: [libgfortran,committed] Have libgfortran.h include <stdarg.h>
This patch, committed as rev. 127060, fixes bootstrap on i386-pc-
minw32; without including <stdarg.h>, compilation of the library
fails with gfortran choking on the st_vprintf prototype, which
contains va_list (although I wondered why it doesn't appear on
linux). Committed after bootstrap on both i386-mingw32 and i686-linux.
FX
Index: ChangeLog
===================================================================
--- ChangeLog (revision 127059)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2007-07-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ * libgfortran.h: Include <stdarg.h>.
+
2007-07-29 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32858
Index: libgfortran.h
===================================================================
--- libgfortran.h (revision 127059)
+++ libgfortran.h (working copy)
@@ -35,6 +35,7 @@ Boston, MA 02110-1301, USA. */
#include <math.h>
#include <stddef.h>
#include <float.h>
+#include <stdarg.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327