diff options
author | Ron <ron@debian.org> | 2009-06-27 04:44:21 +0930 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-05 20:27:17 -0400 |
commit | 11a52734e42237bac70a1f4a3ae2ef7e9f751bc4 (patch) | |
tree | 7015b49ac8e9b29a733506e470529dacad97d953 /libpthread/linuxthreads.old/cancel.c | |
parent | 00c8ece258acfa8867485172af9e74313d25bbdf (diff) |
Check #if feature test macros are defined where they may not be
Once again all of these reduce the noise from gcc-4.4.
Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need
to mess with them for this anyhow.
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libpthread/linuxthreads.old/cancel.c')
-rw-r--r-- | libpthread/linuxthreads.old/cancel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/linuxthreads.old/cancel.c b/libpthread/linuxthreads.old/cancel.c index 03a85e4e9..47534be66 100644 --- a/libpthread/linuxthreads.old/cancel.c +++ b/libpthread/linuxthreads.old/cancel.c @@ -31,7 +31,7 @@ extern void __rpc_thread_destroy(void); #ifdef _STACK_GROWS_DOWN # define FRAME_LEFT(frame, other) ((char *) frame >= (char *) other) -#elif _STACK_GROWS_UP +#elif defined _STACK_GROWS_UP # define FRAME_LEFT(frame, other) ((char *) frame <= (char *) other) #else # error "Define either _STACK_GROWS_DOWN or _STACK_GROWS_UP" @@ -193,10 +193,10 @@ void __pthread_perform_cleanup(char *currentframe) for (c = THREAD_GETMEM(self, p_cleanup); c != NULL; c = c->__prev) { -#if _STACK_GROWS_DOWN +#ifdef _STACK_GROWS_DOWN if ((char *) c <= currentframe) break; -#elif _STACK_GROWS_UP +#elif defined _STACK_GROWS_UP if ((char *) c >= currentframe) break; #else |