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:
4
src/pc.c
4
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, <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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user