This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]