aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-01-31 17:43:09 +0000
committerRichard Stallman <rms@gnu.org>1993-01-31 17:43:09 +0000
commit32d2858d9bb916d436dee58605552d504fca5d5b (patch)
treee9443a6af8bb86461e84a592b9ddb25650a092fc /gcc
parent43a5a54258c634de80ca2eeeafb31a949448f322 (diff)
downloadgcc-32d2858d9bb916d436dee58605552d504fca5d5b.zip
gcc-32d2858d9bb916d436dee58605552d504fca5d5b.tar.gz
gcc-32d2858d9bb916d436dee58605552d504fca5d5b.tar.bz2
Include gvarargs.h before system headers.
From-SVN: r3395
Diffstat (limited to 'gcc')
-rw-r--r--gcc/protoize.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index c482af9..858a0b0 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -57,6 +57,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define _POSIX_SOURCE
#endif
+#include "gvarargs.h"
+/* On some systems stdio.h includes stdarg.h;
+ we must bring in gvarargs.h first. */
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
@@ -68,7 +71,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/dir.h>
#endif
#include <setjmp.h>
-#include "gvarargs.h"
/* Include getopt.h for the sake of getopt_long.
We don't need the declaration of getopt, and it could conflict