summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2008-05-23 16:44:41 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2008-05-23 16:44:41 +0000
commit27ec6fb83527a2638ed9f31a78dffe063c17eddb (patch)
tree81b2e6c46c7663757f463c3586fd8746774818b6 /misc
parent2bec546e0a1e385fbb8712949ddf8ee30090b25b (diff)
downloadlibapr-util-27ec6fb83527a2638ed9f31a78dffe063c17eddb.tar.gz
Fix ifdef tests where the flags are booleans.
Noted by: bnicholes git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@659591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/apu_dso.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/apu_dso.c b/misc/apu_dso.c
index 16a47a37..ba10eb0c 100644
--- a/misc/apu_dso.c
+++ b/misc/apu_dso.c
@@ -38,7 +38,7 @@ static apr_thread_mutex_t* mutex = NULL;
static apr_hash_t *dsos = NULL;
-#if defined(APR_HAS_THREADS) && defined(APU_DSO_BUILD)
+#if APR_HAS_THREADS && APU_DSO_BUILD
apr_status_t apu_dso_mutex_lock()
{
return apr_thread_mutex_lock(mutex);
@@ -79,7 +79,7 @@ apr_status_t apu_dso_init(apr_pool_t *pool)
apr_pool_t *global;
apr_pool_t *parent;
-#ifdef APU_DSO_BUILD
+#if APU_DSO_BUILD
/* Top level pool scope, need process-scope lifetime */
for (parent = global = pool; parent; parent = apr_pool_parent_get(global))
global = parent;
@@ -104,7 +104,7 @@ apr_status_t apu_dso_init(apr_pool_t *pool)
apr_status_t apu_dso_load(apr_dso_handle_sym_t *dsoptr, const char *module,
const char *modsym, apr_pool_t *pool)
{
-#ifndef APU_DSO_BUILD
+#if !APU_DSO_BUILD
return APR_ENOTIMPL;
#else
apr_dso_handle_t *dlhandle = NULL;