From 200809cbbf0d8e99ce059e82494b8bd3a5c16ca9 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 6 Sep 2007 12:40:50 +0000 Subject: libgfortran.h: Include config.h first. * libgfortran.h: Include config.h first. * io/io.h (struct stream): Rename truncate to trunc. * io/unix.c (fd_open): Same. (open_internal): Same. From-SVN: r128182 --- libgfortran/libgfortran.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libgfortran/libgfortran.h') diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index 7ce198a..6a702c4 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -31,6 +31,9 @@ Boston, MA 02110-1301, USA. */ #ifndef LIBGFOR_H #define LIBGFOR_H +/* config.h MUST be first because it can affect system headers. */ +#include "config.h" + #include #include #include @@ -45,7 +48,6 @@ Boston, MA 02110-1301, USA. */ #include "../gcc/fortran/libgfortran.h" -#include "config.h" #include "c99_protos.h" #if HAVE_IEEEFP_H -- cgit v1.1