From 1cfb1a324798f6ed03e49813d8dfe6b28dfb9c4f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 14 Dec 2008 16:04:01 +0000 Subject: heed compiler warnings about checking non-defined variables in #if directives --- libpthread/linuxthreads.old/attr.c | 2 +- libpthread/linuxthreads.old/pthread.c | 2 +- libpthread/linuxthreads.old/specific.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old/attr.c b/libpthread/linuxthreads.old/attr.c index 30294afe4..a0aacf12a 100644 --- a/libpthread/linuxthreads.old/attr.c +++ b/libpthread/linuxthreads.old/attr.c @@ -61,7 +61,7 @@ int pthread_attr_init(pthread_attr_t *attr) libpthread_hidden_def(pthread_attr_init) /* uClibc: leave out this for now. */ -#if DO_PTHREAD_VERSIONING_WITH_UCLIBC +#if defined DO_PTHREAD_VERSIONING_WITH_UCLIBC #if defined __PIC__ && defined DO_VERSIONING default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1); diff --git a/libpthread/linuxthreads.old/pthread.c b/libpthread/linuxthreads.old/pthread.c index 119c1cdda..308845d36 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 !(USE_TLS && HAVE___THREAD) +#if !(defined USE_TLS && HAVE___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/specific.c b/libpthread/linuxthreads.old/specific.c index dd86148d8..67e8eda4e 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 !(USE_TLS && HAVE___THREAD) +#if !(defined USE_TLS && HAVE___THREAD) /* Thread-specific data for libc. */ -- cgit v1.2.3