Hrvoje Niksic <[EMAIL PROTECTED]> writes:

> One way to deal with this is to add "# undef alloca" before the
> definition,

It now occurred to me that this won't work because malloc.h is
normally included *after* config.h.  Instead, maybe the declaration
should be amended like this:

#if HAVE_ALLOCA_H
# include <alloca.h>
#elif defined _MSC_VER || defined __MINGW32__ || defined __BORLANDC__
# include <malloc.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
...

(It seems that declaring alloca in malloc.h is a Win32 standard which
all Windows compilers respect.)


Reply via email to