projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a464478
)
Don't define xmmalloca if not needed.
author
Bruno Haible
<bruno@clisp.org>
Mon, 31 Dec 2007 10:55:46 +0000
(11:55 +0100)
committer
Bruno Haible
<bruno@clisp.org>
Mon, 31 Dec 2007 10:55:46 +0000
(11:55 +0100)
ChangeLog
patch
|
blob
|
history
lib/xmalloca.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
207323a
..
22b0d54
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,5
+1,10
@@
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.
(xnmalloca): New macro.
diff --git
a/lib/xmalloca.c
b/lib/xmalloca.c
index
ad527cd
..
d7cc346
100644
(file)
--- 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