diff options
author | DJ Delorie <dj@delorie.com> | 2005-03-28 05:07:08 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2005-03-28 05:07:08 +0000 |
commit | eb0e4f9cefc1d530da0654474f7a909f07ee77d3 (patch) | |
tree | 5f0563b072f5e292e6c10e44250653ca9048f83c /libiberty/snprintf.c | |
parent | 330f7c1a6218d3b4a10b5b571eee65f3d53b64ac (diff) | |
download | gdb-eb0e4f9cefc1d530da0654474f7a909f07ee77d3.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/snprintf.c')
-rw-r--r-- | libiberty/snprintf.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libiberty/snprintf.c b/libiberty/snprintf.c index 89164695b50..d8eb5855ab5 100644 --- a/libiberty/snprintf.c +++ b/libiberty/snprintf.c @@ -41,18 +41,13 @@ this function is used. #include "ansidecl.h" -#ifdef ANSI_PROTOTYPES #include <stdarg.h> #include <stddef.h> -#else -#include <varargs.h> -#define size_t unsigned long -#endif -int vsnprintf PARAMS ((char *, size_t, const char *, va_list)); +int vsnprintf (char *, size_t, const char *, va_list); int -snprintf VPARAMS ((char *s, size_t n, const char *format, ...)) +snprintf (char *s, size_t n, const char *format, ...) { int result; VA_OPEN (ap, format); |