summaryrefslogtreecommitdiff
path: root/include/apr_pools.h
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-10-30 12:17:07 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-10-30 12:17:07 +0000
commit59e3ab93dbd54c133c444e678c8cbbcbe23f15db (patch)
tree926ec48a5c2dde0f39dc1062660c62c1f2f460f2 /include/apr_pools.h
parent3c38160ea0af6c6333b693ce549936c8bf318093 (diff)
downloadlibapr-59e3ab93dbd54c133c444e678c8cbbcbe23f15db.tar.gz
Submitted by: Julian Foad <julianfoad@btopenworld.com>
Reviewed by: Sander Striker * include/apr_pools.h Fix preprocessor magic when APR_POOL_DEBUG is defined, but is blank. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64703 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_pools.h')
-rw-r--r--include/apr_pools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/apr_pools.h b/include/apr_pools.h
index 00cfa6149..350660d95 100644
--- a/include/apr_pools.h
+++ b/include/apr_pools.h
@@ -162,7 +162,8 @@ typedef struct apr_pool_t apr_pool_t;
* </pre>
*/
#if defined(APR_POOL_DEBUG)
-#if (APR_POOL_DEBUG != 0) && (APR_POOL_DEBUG - 0 == 0)
+/* If APR_POOL_DEBUG is blank, we get 1; if it is a number, we get -1. */
+#if (APR_POOL_DEBUG - APR_POOL_DEBUG -1 == 1)
#undef APR_POOL_DEBUG
#define APR_POOL_DEBUG 1
#endif