diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-08-08 14:03:54 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-08-08 15:09:38 +0200 |
commit | daf3e8b97d09d85d51eac34b9d5acf4545d03a2d (patch) | |
tree | 80f422f11a8764611eb311b12504e00130be4484 /src/pulsecore/thread.h | |
parent | 81969a73a494a36356e764cf3576aa48c101bffb (diff) |
Create a new macro for checking compiler support for TLS.
Create a new macro that can be shared between projects to check for
__thread support by the compiler. This macro might come useful for
xine-lib too so I want to keep it separate for easier importing it
over.
Name the defined macro SUPPORT_TLS___THREAD to follow the same style
as the checks from attributes.m4.
Diffstat (limited to 'src/pulsecore/thread.h')
-rw-r--r-- | src/pulsecore/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/thread.h b/src/pulsecore/thread.h index f3aca13e..87e850d6 100644 --- a/src/pulsecore/thread.h +++ b/src/pulsecore/thread.h @@ -86,7 +86,7 @@ void *pa_tls_set(pa_tls *t, void *userdata); } \ struct __stupid_useless_struct_to_allow_trailing_semicolon -#ifdef HAVE_TLS_BUILTIN +#ifdef SUPPORT_TLS___THREAD /* An optimized version of the above that requires no dynamic * allocation if the compiler supports __thread */ #define PA_STATIC_TLS_DECLARE_NO_FREE(name) \ |