diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2006-02-09 11:54:15 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@libertysurf.fr> | 2006-02-09 11:54:15 +0000 |
commit | 6d74f28b36e29b8708881b60e2e6505047813b0b (patch) | |
tree | 4db3c41358a8c93a979bafdf6c33662d21f64d40 /gas/messages.c | |
parent | db50c8404c624dfe903294d439c54a6db7c6d6c8 (diff) | |
download | gdb-6d74f28b36e29b8708881b60e2e6505047813b0b.zip gdb-6d74f28b36e29b8708881b60e2e6505047813b0b.tar.gz gdb-6d74f28b36e29b8708881b60e2e6505047813b0b.tar.bz2 |
2006-02-09 Eric Botcazou <ebotcazou@libertysurf.fr>
* configure.in (CHECK_DECLS): Add vsnprintf.
* configure: Regenerate.
* messages.c (errno.h, stdarg.h, varargs.h, va_list):
Do not include/declare here, but...
* as.h: Move code detecting VARARGS idiom to the top.
(errno.h, stdarg.h, varargs.h, va_list): ...here.
(vsnprintf): Declare if not already declared.
Diffstat (limited to 'gas/messages.c')
-rw-r--r-- | gas/messages.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gas/messages.c b/gas/messages.c index a8e309d..b1b94cd 100644 --- a/gas/messages.c +++ b/gas/messages.c @@ -21,28 +21,6 @@ #include "as.h" -#include <stdio.h> -#ifdef HAVE_ERRNO_H -#include <errno.h> -#endif - -#ifdef USE_STDARG -#include <stdarg.h> -#endif - -#ifdef USE_VARARGS -#include <varargs.h> -#endif - -#if !defined (USE_STDARG) && !defined (USE_VARARGS) -/* Roll our own. */ -#define va_alist REST -#define va_dcl -typedef int * va_list; -#define va_start(ARGS) ARGS = &REST -#define va_end(ARGS) -#endif - static void identify (char *); static void as_show_where (void); static void as_warn_internal (char *, unsigned int, char *); |