summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-26 08:11:47 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-26 08:11:47 +0000
commit32e0908a2a561cd8f7ce4c9656235b2855f288fc (patch)
tree16408c3d9cfa526c1ed49849112441367ae78a82 /gcc/system.h
parentc90458a18148ca1ff69a60102950edd7e1b81f1a (diff)
downloadgcc-32e0908a2a561cd8f7ce4c9656235b2855f288fc.tar.gz
* system.h: Include stdarg.h/varargs.h, make sure they are ordered
correctly with regards to stdio.h. * calls.c: Remove stdarg.h/varargs.h. * cccp.c: Likewise. * cexp.y: Likewise. * combine.c: Likewise. * cpperror.c: Likewise. * cpplib.c: Likewise. * cpplib.h: Likewise. * doprint.c: Likewise. * emit-rtl.c: Likewise. * final.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * genattr.c: Likewise. * genattrtab.c: Likewise. * gencodes.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. * mips-tfile.c: Likewise. * prefix.c: Likewise. * protoize.c: Likewise. * regmove.c: Likewise. * toplev.c: Likewise. * tree.c: Likewise. * cp/errfn.c: Remove stdarg.h/varargs.h. * cp/tree.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 27b1fee6bdf..e16cd2ea312 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -7,6 +7,13 @@
#ifndef __GCC_SYSTEM_H__
#define __GCC_SYSTEM_H__
+/* We must include stdarg.h/varargs.h before stdio.h. */
+#ifdef __STDC__
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
#include <stdio.h>
/* Define a generic NULL if one hasn't already been defined. */