From d6ade7422ab60259c1d7b825ee0ff9a5361c7f42 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 27 Jul 2000 20:14:39 +0000 Subject: [PATCH] Looks like Win32 builds do not define THREADS. However, they're still supporting threads, which means that th assertion is supperbly dangerous, so make sure it's not compiled under Win32, period. --- crypto/rand/md_rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index f874f2fe2c..837947e8a6 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -293,7 +293,7 @@ static void ssleay_rand_add(const void *buf, int num, double add) entropy += add; if (!add_do_not_lock) CRYPTO_w_unlock(CRYPTO_LOCK_RAND); -#ifndef THREADS +#if !defined(THREADS) && !defined(WIN32) assert(md_c[1] == md_count[1]); #endif } -- 2.34.1