From: Bruno Haible Date: Mon, 31 Dec 2007 10:55:46 +0000 (+0100) Subject: Don't define xmmalloca if not needed. X-Git-Tag: v0.1~7893 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f4637bbf9a6a5f1d3c5390fdab23882c25dfe464;p=gnulib.git Don't define xmmalloca if not needed. --- diff --git a/ChangeLog b/ChangeLog index 207323a48..22b0d540e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-12-30 Bruno Haible + * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not + defined. + +2007-12-30 Bruno Haible + * lib/xmalloca.h: Include xalloc.h. (xnmalloca): New macro. diff --git a/lib/xmalloca.c b/lib/xmalloca.c index ad527cd1d..d7cc346d1 100644 --- a/lib/xmalloca.c +++ b/lib/xmalloca.c @@ -22,6 +22,8 @@ #include "xalloc.h" +#if HAVE_ALLOCA + void * xmmalloca (size_t n) { @@ -32,3 +34,5 @@ xmmalloca (size_t n) xalloc_die (); return p; } + +#endif