summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2022-01-25 10:53:28 +0000
committerYann Ylavic <ylavic@apache.org>2022-01-25 10:53:28 +0000
commit05023098b8283a21bf1c5229db6c6c73c6407a0e (patch)
tree4b53bdc1e48f97e277ccbaf1fd8461150cfa4eba /include
parent367a9c3c50b18fccf2ca899fc1ea01a221928673 (diff)
downloadapr-05023098b8283a21bf1c5229db6c6c73c6407a0e.tar.gz
apr_thread: Follow up to r1897207: Make APR_HAS_THREAD_LOCAL a boolean..
.. rather than a defined(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1897447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_thread_proc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/apr_thread_proc.h b/include/apr_thread_proc.h
index ab1e1a92d..270cb24b2 100644
--- a/include/apr_thread_proc.h
+++ b/include/apr_thread_proc.h
@@ -209,8 +209,6 @@ typedef enum {
/* Thread Function definitions */
-#undef APR_HAS_THREAD_LOCAL
-
#if APR_HAS_THREADS
/**
@@ -228,6 +226,8 @@ typedef enum {
#ifdef APR_THREAD_LOCAL
#define APR_HAS_THREAD_LOCAL 1
+#else
+#define APR_HAS_THREAD_LOCAL 0
#endif
/**
@@ -426,7 +426,11 @@ APR_DECLARE(apr_status_t) apr_threadkey_data_set(void *data, const char *key,
apr_status_t (*cleanup) (void *),
apr_threadkey_t *threadkey);
-#endif
+#else /* APR_HAS_THREADS */
+
+#define APR_HAS_THREAD_LOCAL 0
+
+#endif /* APR_HAS_THREADS */
/**
* Create and initialize a new procattr variable