#ifndef foopulsethreadhfoo
#define foopulsethreadhfoo
-/* $Id$ */
-
/***
This file is part of PulseAudio.
} \
static void name##_tls_destructor(void) PA_GCC_DESTRUCTOR; \
static void name##_tls_destructor(void) { \
+ static void (*_free_cb)(void*) = free_cb; \
if (!name##_tls.tls) \
return; \
- if (free_cb) { \
+ if (_free_cb) { \
void *p; \
if ((p = pa_tls_get(name##_tls.tls))) \
- free_cb(p); \
+ _free_cb(p); \
} \
pa_tls_free(name##_tls.tls); \
} \
} \
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) \