This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[PATCH, committed] libgfortran header files
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Sun, 27 Nov 2005 17:13:40 -0500
- Subject: [PATCH, committed] libgfortran header files
Most libgfortran files that include io.h first include config.h
and libgfortran.h. Two files do not, and that contributed to the problems
exposed by Jakub's patch.
This patch includes config.h in intrinsics/random.c and
io/size_froim_kind.c, which allows the AIX kludge to be removed from
io/io.h.
Tested by rebuilding the library.
Approved on IRC by stevenb.
David
* intrinsics/random.c: Include config.h
* io/size_from_kind.c: Include config.h and libgfortran.h
* io/io.h: Revert 2005-11-21 change.
Index: intrinsics/random.c
===================================================================
*** intrinsics/random.c (revision 107562)
--- intrinsics/random.c (working copy)
*************** License along with libgfortran; see the
*** 29,34 ****
--- 29,35 ----
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
+ #include "config.h"
#include "libgfortran.h"
#include "../io/io.h"
Index: io/size_from_kind.c
===================================================================
*** io/size_from_kind.c (revision 107562)
--- io/size_from_kind.c (working copy)
*************** Boston, MA 02110-1301, USA. */
*** 31,36 ****
--- 31,38 ----
/* This file contains utility functions for determining the size of a
variable given its kind. */
+ #include "config.h"
+ #include "libgfortran.h"
#include "io.h"
size_t
Index: io/io.h
===================================================================
*** io/io.h (revision 107562)
--- io/io.h (working copy)
*************** Boston, MA 02110-1301, USA. */
*** 37,47 ****
#define SUPPORTS_WEAK 1
#endif
- #ifdef _AIX
- #undef _LARGE_FILES
- #define _LARGE_FILE_API
- #endif
-
#include <gthr.h>
#define DEFAULT_TEMPDIR "/tmp"
--- 37,42 ----