Changeset: 8c066bc5c326 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8c066bc5c326 Modified Files: common/stream/stream.c Branch: Mar2011 Log Message:
Use standard blurb for alloca(). This should fix bug 2778. diffs (25 lines): diff --git a/common/stream/stream.c b/common/stream/stream.c --- a/common/stream/stream.c +++ b/common/stream/stream.c @@ -92,8 +92,19 @@ #ifdef HAVE_LIBBZ2 #include <bzlib.h> #endif -#ifdef HAVE_MALLOC_H -#include <malloc.h> /* for alloca on Windows */ + +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#elif defined __GNUC__ +# define alloca __builtin_alloca +#elif defined _AIX +# define alloca __alloca +#elif defined _MSC_VER +# include <malloc.h> +# define alloca _alloca +#else +# include <stddef.h> +void *alloca(size_t); #endif #ifndef SHUT_RD _______________________________________________ Checkin-list mailing list [email protected] http://mail.monetdb.org/mailman/listinfo/checkin-list
