Include gvarargs.h before system headers.
authorRichard Stallman <rms@gnu.org>
Sun, 31 Jan 1993 17:43:09 +0000 (17:43 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 31 Jan 1993 17:43:09 +0000 (17:43 +0000)
From-SVN: r3395

gcc/protoize.c

index c482af93b1d91ca8ef04631b1eb040bccf92ab05..858a0b004858209de2ac7ab093744a855378a20f 100644 (file)
@@ -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