1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00

(varargs.h): Remove, leave just stdarg.h which is all the

code has support for.  Fixes building with AIX cc, which is ansi but
doesn't define __STDC__.  Reported by Keith Crane.
(var_start): Remove macro, this variation no longer required.
(scm_list_n): Use va_start directly.
This commit is contained in:
Kevin Ryde 2004-05-01 21:26:35 +00:00
parent 312a986b11
commit 558fe9ed15

View file

@ -47,13 +47,7 @@
#include "libguile/validate.h"
#include "libguile/list.h"
#ifdef __STDC__
#include <stdarg.h>
#define var_start(x, y) va_start(x, y)
#else
#include <varargs.h>
#define var_start(x, y) va_start(x)
#endif
/* creating lists */
@ -111,7 +105,7 @@ scm_list_n (SCM elt, ...)
SCM answer = SCM_EOL;
SCM *pos = &answer;
var_start (foo, elt);
va_start (foo, elt);
while (! SCM_UNBNDP (elt))
{
*pos = scm_cons (elt, SCM_EOL);