check if USE_TLS is defined before use
commite092e7c30464555b3fb81adc8f2f479e892b0786
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 16 Dec 2009 12:12:00 +0000 (16 13:12 +0100)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 17 Dec 2009 12:42:26 +0000 (17 13:42 +0100)
tree8aed900855f09f0e93d7808339a01816d5d798a8
parent197b2de50d7c025b6a25e7e1cde7a5667728c15c
check if USE_TLS is defined before use

This patch will convert all the #ifdef USE_TLS and #if USE_TLS to
 #if defined(USE_TLS) && USE_TLS.

By checking if the USE_TLS is defined before checking its value will result in
correct behavior for architectures not defining this config symbol.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Acked-by: Carmelo AMOROSO <carmelo.amoroso@st.com>
include/link.h
ldso/include/dl-hash.h
ldso/ldso/dl-elf.c
ldso/ldso/dl-hash.c
ldso/ldso/dl-startup.c
ldso/ldso/ldso.c
ldso/libdl/libdl.c
libc/misc/elf/dl-support.c
libpthread/linuxthreads.old/pthread.c
libpthread/linuxthreads.old_db/td_thr_tls_get_addr.c