This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.4 PATCH: Don't use #include "file.h" for system headers in Ada
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Arnaud Charlet <charlet at ACT-Europe dot FR>
- Date: Fri, 7 Nov 2003 19:53:08 +0100 (MET)
- Subject: 3.4 PATCH: Don't use #include "file.h" for system headers in Ada
I noticed that two source files in the gcc/ada subdir use the "" form of
#include for system headers. This is just confusing and shouldn't be
necessary.
The following trivial patch fixes this.
Bootstrapped on mips-sgi-irix6.5 (among others) without regressions.
Ok for mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Fri Nov 7 19:43:42 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* adadecode.c: Use <> form for <ctype.h>.
* sysdep.c [IN_RTS]: Use <> form of include for time.h.
Index: gcc/ada/adadecode.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/adadecode.c,v
retrieving revision 1.7
diff -u -p -r1.7 adadecode.c
--- gcc/ada/adadecode.c 31 Oct 2003 01:08:39 -0000 1.7
+++ gcc/ada/adadecode.c 7 Nov 2003 14:01:38 -0000
@@ -38,7 +38,7 @@
#define PARMS(ARGS) ARGS
#endif
-#include "ctype.h"
+#include <ctype.h>
#include "adadecode.h"
static void add_verbose (const char *, char *);
Index: gcc/ada/sysdep.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/sysdep.c,v
retrieving revision 1.13
diff -u -p -r1.13 sysdep.c
--- gcc/ada/sysdep.c 4 Nov 2003 12:51:46 -0000 1.13
+++ gcc/ada/sysdep.c 7 Nov 2003 14:01:38 -0000
@@ -44,7 +44,7 @@
#include "tsystem.h"
#include <fcntl.h>
#include <sys/stat.h>
-#include "time.h"
+#include <time.h>
#ifdef VMS
#include <unixio.h>
#endif