summaryrefslogtreecommitdiffstats
path: root/crypto/mem_dbg.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2016-01-07 21:40:52 -0500
committerRich Salz <rsalz@openssl.org>2016-01-08 14:35:04 -0500
commit6ac11bd0b9252e4cf53cb0b914db98b401779c15 (patch)
treea14e20ecab82a453c408f8da3b2f6ed313d97fcb /crypto/mem_dbg.c
parent8da94770f0a049497b1a52ee469cca1f4a13b1a7 (diff)
Fix no CRYPTO_MDEBUG build (windows)
In order for mkdep to find #ifdef'd functions, they must be wrapped (in the header file) with #ifndef OPENSSL_NO_... So do that for various CRYPTO_mem_debug... things. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'crypto/mem_dbg.c')
-rw-r--r--crypto/mem_dbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c
index 2132b7da5c..72487b5e03 100644
--- a/crypto/mem_dbg.c
+++ b/crypto/mem_dbg.c
@@ -134,7 +134,7 @@
*/
static int mh_mode = CRYPTO_MEM_CHECK_OFF;
-#ifdef CRYPTO_MDEBUG
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
static unsigned long order = 0; /* number of memory requests */
DECLARE_LHASH_OF(MEM);
@@ -272,7 +272,7 @@ int CRYPTO_mem_ctrl(int mode)
#endif
}
-#ifdef CRYPTO_MDEBUG
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
static int mem_check_on(void)
{