From 4982ed96faa119b73463a7c5ca09711efaf69382 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Thu, 3 Jan 2019 23:53:41 +0000 Subject: [PATCH] Fix double definition of smemclr() on Windows. PLATFORM_HAS_SMEMCLR from winstuff.h was available to misc.c via putty.h, but the point of utils.c is not to pull in that stuff. This is a quick bodge to unbreak the Windows build. It needs a better answer for optionally overriding the platform-independent smemclr() with a platform-specific implementation. --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index c38eb916..e7f6f76c 100644 --- a/utils.c +++ b/utils.c @@ -850,7 +850,7 @@ void debug_memdump(const void *buf, int len, bool L) #endif /* def DEBUG */ -#ifndef PLATFORM_HAS_SMEMCLR +#ifndef _WINDOWS /* FIXME PLATFORM_HAS_SMEMCLR */ /* * Securely wipe memory. *