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 | 1f9986ff0c997a3e9d5542ca51aa368a98d6f2fa (patch) | |
tree | db473c64346bf46ab42e45d3d671f3a1901751b8 /gas/messages.c | |
parent | 343bf1c71c2b0da78743a2f6ce406fa6ea086306 (diff) | |
download | binutils-redhat-1f9986ff0c997a3e9d5542ca51aa368a98d6f2fa.tar.gz |
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 a8e309d162..b1b94cdf7c 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 *); |