summaryrefslogtreecommitdiff
path: root/threadproc/beos/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadproc/beos/thread.c')
-rw-r--r--threadproc/beos/thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/threadproc/beos/thread.c b/threadproc/beos/thread.c
index 961a2b180..a2f4ef991 100644
--- a/threadproc/beos/thread.c
+++ b/threadproc/beos/thread.c
@@ -62,7 +62,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr,
return APR_ENOTIMPL;
}
-#ifdef APR_HAS_THREAD_LOCAL
+#if APR_HAS_THREAD_LOCAL
static APR_THREAD_LOCAL apr_thread_t *current_thread = NULL;
#endif
@@ -71,7 +71,7 @@ static void *dummy_worker(void *opaque)
apr_thread_t *thd = (apr_thread_t*)opaque;
void *ret;
-#ifdef APR_HAS_THREAD_LOCAL
+#if APR_HAS_THREAD_LOCAL
current_thread = thd;
#endif
@@ -177,7 +177,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->td = apr_os_thread_current();
-#ifdef APR_HAS_THREAD_LOCAL
+#if APR_HAS_THREAD_LOCAL
current_thread = *current;
#endif
return APR_SUCCESS;
@@ -185,7 +185,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
APR_DECLARE(apr_thread_t *) apr_thread_current(void)
{
-#ifdef APR_HAS_THREAD_LOCAL
+#if APR_HAS_THREAD_LOCAL
return current_thread;
#else
return NULL;