From 3bbd79d8a5a4874ba94c6bcfaa899e752d78c3cf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Jan 2007 04:28:46 +0000 Subject: use ifdef rather than if for stack direction --- include/libc-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 */ #include -#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); \ -- cgit v1.2.3