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:
parent
312a986b11
commit
558fe9ed15
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue