diff options
author | Ian Lance Taylor <ian@cygnus.com> | 1997-10-16 07:39:03 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-10-16 01:39:03 -0600 |
commit | a6e74b833cd13b0dfcdc18642b38ad78ccc96d11 (patch) | |
tree | 848d3bb7111334e4d216bc8006cb59a2adbbd7a7 /libiberty/asprintf.c | |
parent | 2636fde4ba0c5819f06739c731f5a9176d5a65bd (diff) | |
download | gcc-a6e74b833cd13b0dfcdc18642b38ad78ccc96d11.zip gcc-a6e74b833cd13b0dfcdc18642b38ad78ccc96d11.tar.gz gcc-a6e74b833cd13b0dfcdc18642b38ad78ccc96d11.tar.bz2 |
asprintf.c: Consistently use either stdarg or varargs.
* asprintf.c: Consistently use either stdarg or varargs.
Bring over from devo.
From-SVN: r15929
Diffstat (limited to 'libiberty/asprintf.c')
-rw-r--r-- | libiberty/asprintf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libiberty/asprintf.c b/libiberty/asprintf.c index 1cd6397..5aaf320 100644 --- a/libiberty/asprintf.c +++ b/libiberty/asprintf.c @@ -22,14 +22,18 @@ Boston, MA 02111-1307, USA. */ #include "ansidecl.h" #include "libiberty.h" -#if defined __STDC__ || defined ALMOST_STDC +#if defined (ANSI_PROTOTYPES) || defined (ALMOST_STDC) +#define USE_STDARG +#endif + +#ifdef USE_STDARG #include <stdarg.h> #else #include <varargs.h> #endif /* VARARGS */ -#ifdef ANSI_PROTOTYPES +#ifdef USE_STDARG int asprintf (char **buf, const char *fmt, ...) #else @@ -42,7 +46,7 @@ asprintf (buf, fmt, va_alist) { int status; va_list ap; -#ifdef ANSI_PROTOTYPES +#ifdef USE_STDARG va_start (ap, fmt); #else va_start (ap); |