svn commit: trunk/uClibc/include

vapier at uclibc.org vapier at uclibc.org
Mon Jan 29 04:28:46 UTC 2007


Author: vapier
Date: 2007-01-28 20:28:46 -0800 (Sun, 28 Jan 2007)
New Revision: 17624

Log:
use ifdef rather than if for stack direction

Modified:
   trunk/uClibc/include/libc-internal.h


Changeset:
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h	2007-01-29 04:07:37 UTC (rev 17623)
+++ trunk/uClibc/include/libc-internal.h	2007-01-29 04:28:46 UTC (rev 17624)
@@ -67,7 +67,7 @@
 
 /* #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 @@
 		      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);		      \




More information about the uClibc-cvs mailing list