changeset 9560:fba7b39d30ec

Don't define xmmalloca if not needed.
author Bruno Haible <bruno@clisp.org>
date Mon, 31 Dec 2007 11:55:46 +0100
parents 7913bdfb0cf8
children d722bd5e44bd
files ChangeLog lib/xmalloca.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-30  Bruno Haible  <bruno@clisp.org>
+
+	* lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
+	defined.
+
 2007-12-30  Bruno Haible  <bruno@clisp.org>
 
 	* lib/xmalloca.h: Include xalloc.h.
--- 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 @@
     xalloc_die ();
   return p;
 }
+
+#endif