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
This commit is contained in:
darkstar
2018-05-04 00:08:03 +02:00
parent de1818e661
commit 87421947fd

View File

@@ -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, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -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);