From 87421947fd5bff963bf12fc9441f41d74b9737bf Mon Sep 17 00:00:00 2001 From: darkstar Date: Fri, 4 May 2018 00:08:03 +0200 Subject: [PATCH] Fix compilation for MSVC This function breaks when none of the three #defines are defined. Just declare the variable unconditionally and rely on the compiler to optimize it out when it's not needed --- src/pc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pc.c b/src/pc.c index 0fa7b82..a53154e 100644 --- a/src/pc.c +++ b/src/pc.c @@ -8,7 +8,7 @@ * * Main emulator module where most things are controlled. * - * Version: @(#)pc.c 1.0.32 2018/05/01 + * Version: @(#)pc.c 1.0.33 2018/05/03 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -297,9 +297,7 @@ fatal(const char *fmt, ...) void pc_version(const char *platform) { -#if defined(BUILD) || defined(COMMIT) || defined(UPSTREAM) char temp[128]; -#endif sprintf(emu_title, "%s for %s", EMU_NAME, platform);