Commit 277b5992 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

C89 buildfixes for MSVC

parent 98ea26f6
Pipeline #66978 passed with stages
in 2 minutes and 8 seconds
......@@ -18,11 +18,14 @@
#include "Floppy.h"
#include "SHA1.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef _WIN32
#include <direct.h>
#else
#include <unistd.h>
#endif
#include <time.h>
#ifdef _WIN32
......
......@@ -830,6 +830,7 @@ size_t retro_get_memory_size(unsigned id)
#endif
void retro_run(void)
{
byte currentScreenMode;
int i,j;
bool updated = false;
int16_t joypad_bits[2];
......@@ -898,7 +899,7 @@ void retro_run(void)
JOY_SET(joymap[i].fmsx, 1);
}
byte currentScreenMode = ScrMode;
currentScreenMode = ScrMode;
RunZ80(&CPU);
RenderAndPlayAudio(SND_RATE / fps);
if (currentScreenMode != ScrMode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment