summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-29 04:28:46 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-29 04:28:46 +0000
commit3bbd79d8a5a4874ba94c6bcfaa899e752d78c3cf (patch)
tree4535ac08e691d01897536501e117cc0f80869766 /include
parent152874f9ea75239b674bc3f9b635887e66d40c35 (diff)
use ifdef rather than if for stack direction
Diffstat (limited to 'include')
-rw-r--r--include/libc-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 2f4f7fae3..7b2566f74 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -67,7 +67,7 @@ extern const char *__uclibc_progname attribute_hidden;
/* #include <alloca.h> */
#include <bits/stackinfo.h>
-#if _STACK_GROWS_DOWN
+#if defined(_STACK_GROWS_DOWN)
# define extend_alloca(buf, len, newlen) \
(__typeof (buf)) ({ size_t __newlen = (newlen); \
char *__newbuf = alloca (__newlen); \
@@ -76,7 +76,7 @@ extern const char *__uclibc_progname attribute_hidden;
else \
len = __newlen; \
__newbuf; })
-#elif _STACK_GROWS_UP
+#elif defined(_STACK_GROWS_UP)
# define extend_alloca(buf, len, newlen) \
(__typeof (buf)) ({ size_t __newlen = (newlen); \
char *__newbuf = alloca (__newlen); \