diff options
author | Rich Salz <rsalz@akamai.com> | 2016-01-08 05:40:52 +0300 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-01-08 22:35:04 +0300 |
commit | 6ac11bd0b9252e4cf53cb0b914db98b401779c15 (patch) | |
tree | a14e20ecab82a453c408f8da3b2f6ed313d97fcb /crypto/mem_dbg.c | |
parent | 8da94770f0a049497b1a52ee469cca1f4a13b1a7 (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.c | 4 |
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) { |