diff options
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/cancel.c | 6 | ||||
-rw-r--r-- | libpthread/linuxthreads.old/libc_pthread_init.c | 4 | ||||
-rw-r--r-- | libpthread/linuxthreads.old/pthread.c | 2 | ||||
-rw-r--r-- | libpthread/linuxthreads.old/ptlongjmp.c | 4 | ||||
-rw-r--r-- | libpthread/linuxthreads.old/specific.c | 2 | ||||
-rw-r--r-- | libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c | 2 |
6 files changed, 10 insertions, 10 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 diff --git a/libpthread/linuxthreads.old/libc_pthread_init.c b/libpthread/linuxthreads.old/libc_pthread_init.c index 6cdad844d..6bd08076c 100644 --- a/libpthread/linuxthreads.old/libc_pthread_init.c +++ b/libpthread/linuxthreads.old/libc_pthread_init.c @@ -26,7 +26,7 @@ /* Experimentally off - libc_hidden_proto(memcpy) */ -#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__ +#if ! defined USE___THREAD && defined __UCLIBC_HAS_XLOCALE__ /* libc_hidden_proto(uselocale) */ #endif @@ -42,7 +42,7 @@ int * __libc_pthread_init (const struct pthread_functions *functions) sizeof (__libc_pthread_functions)); #endif -#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__ +#if ! defined USE___THREAD && defined __UCLIBC_HAS_XLOCALE__ /* Initialize thread-locale current locale to point to the global one. With __thread support, the variable's initializer takes care of this. */ uselocale (LC_GLOBAL_LOCALE); diff --git a/libpthread/linuxthreads.old/pthread.c b/libpthread/linuxthreads.old/pthread.c index e1e6c9fd6..c988131fc 100644 --- a/libpthread/linuxthreads.old/pthread.c +++ b/libpthread/linuxthreads.old/pthread.c @@ -321,7 +321,7 @@ libpthread_hidden_proto(pthread_condattr_init) struct pthread_functions __pthread_functions = { -#if !(defined USE_TLS && HAVE___THREAD) +#ifndef USE___THREAD .ptr_pthread_internal_tsd_set = __pthread_internal_tsd_set, .ptr_pthread_internal_tsd_get = __pthread_internal_tsd_get, .ptr_pthread_internal_tsd_address = __pthread_internal_tsd_address, diff --git a/libpthread/linuxthreads.old/ptlongjmp.c b/libpthread/linuxthreads.old/ptlongjmp.c index b3ff2746f..5213a4de0 100644 --- a/libpthread/linuxthreads.old/ptlongjmp.c +++ b/libpthread/linuxthreads.old/ptlongjmp.c @@ -35,13 +35,13 @@ static void pthread_cleanup_upto(__jmp_buf target) c != NULL && _JMPBUF_UNWINDS(target, c); c = c->__prev) { -#if _STACK_GROWS_DOWN +#ifdef _STACK_GROWS_DOWN if ((char *) c <= currentframe) { c = NULL; break; } -#elif _STACK_GROWS_UP +#elif defined _STACK_GROWS_UP if ((char *) c >= currentframe) { c = NULL; diff --git a/libpthread/linuxthreads.old/specific.c b/libpthread/linuxthreads.old/specific.c index 67e8eda4e..8e08aa4d0 100644 --- a/libpthread/linuxthreads.old/specific.c +++ b/libpthread/linuxthreads.old/specific.c @@ -167,7 +167,7 @@ void __pthread_destroy_specifics(void) __pthread_unlock(THREAD_GETMEM(self, p_lock)); } -#if !(defined USE_TLS && HAVE___THREAD) +#ifndef USE___THREAD /* Thread-specific data for libc. */ diff --git a/libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c b/libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c index a28b07450..19821d6e7 100644 --- a/libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c +++ b/libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c @@ -31,7 +31,7 @@ td_thr_tls_get_addr (const td_thrhandle_t *th __attribute__ ((unused)), size_t offset __attribute__ ((unused)), void **address __attribute__ ((unused))) { -#if USE_TLS +#ifdef USE_TLS size_t modid; union dtv pdtv, *dtvp; |