diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-05-23 15:25:41 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-05-23 15:25:41 +0000 |
commit | e0aef83a8e63032f02cf0c9487cd2f24c0a168e8 (patch) | |
tree | a0ce6b8bd25065e4c96525934514f68a7ec4523e /libiberty | |
parent | 540916734203a1759c9f606a9557a8aad940a749 (diff) |
backport: vsprintf.c: Include "ansidecl.h" earlier...
Backport from mainline:
2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* vsprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES and possibly include <stdarg.h>.
From-SVN: r67119
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 8 | ||||
-rw-r--r-- | libiberty/vsprintf.c | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b9472d715e2..837b45fd554 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,11 @@ +2003-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + Backport from mainline: + 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * vsprintf.c: Include "ansidecl.h" earlier, rely on + ANSI_PROTOTYPES and possibly include <stdarg.h>. + 2003-05-14 Carlo Wood <carlo@alinoe.com> * cp-demangle.c: Fix typo in "char_traints" string-literal. diff --git a/libiberty/vsprintf.c b/libiberty/vsprintf.c index b69e9bc9ca6..9f09d7e2758 100644 --- a/libiberty/vsprintf.c +++ b/libiberty/vsprintf.c @@ -26,9 +26,13 @@ the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ +#include <ansidecl.h> +#ifdef ANSI_PROTOTYPES +#include <stdarg.h> +#else #include <varargs.h> +#endif #include <stdio.h> -#include <ansidecl.h> #undef vsprintf #if defined _IOSTRG && defined _IOWRT |