Skip to content

Commit 6a04da9

Browse files
bslenulJoeMatt
authored andcommitted
Windows build fix attempt
1 parent 87f7bbe commit 6a04da9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

libretro.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ static JagMapping jag_map[22] = {
122122

123123
static int get_button_id(const char *val)
124124
{
125-
for (int i = 0; i <= BUTTON_NONE; i++)
125+
unsigned i;
126+
for (i = 0; i <= BUTTON_NONE; i++)
126127
{
127128
if (!strcmp(jag_map[i].value, val))
128129
return jag_map[i].id;
@@ -135,6 +136,7 @@ static bool update_option_visibility(void)
135136
struct retro_core_option_display option_display;
136137
struct retro_variable var;
137138
bool updated = false;
139+
unsigned i;
138140

139141
// Show/hide input options
140142
bool show_input_options_prev = show_input_options;
@@ -148,7 +150,7 @@ static bool update_option_visibility(void)
148150
{
149151
option_display.visible = show_input_options;
150152

151-
for (int i = 0; i < 2; i++)
153+
for (i = 0; i < 2; i++)
152154
{
153155
char key[64];
154156
option_display.key = key;
@@ -214,11 +216,11 @@ static bool update_option_visibility(void)
214216
void retro_set_environment(retro_environment_t cb)
215217
{
216218
struct retro_vfs_interface_info vfs_iface_info;
219+
struct retro_core_options_update_display_callback update_display_cb;
217220
bool option_categories = false;
218221
environ_cb = cb;
219222

220223
libretro_set_core_options(environ_cb, &option_categories);
221-
struct retro_core_options_update_display_callback update_display_cb;
222224
update_display_cb.callback = update_option_visibility;
223225
environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS_UPDATE_DISPLAY_CALLBACK, &update_display_cb);
224226

@@ -230,6 +232,7 @@ void retro_set_environment(retro_environment_t cb)
230232

231233
static void check_variables(void)
232234
{
235+
unsigned i;
233236
struct retro_variable var;
234237
var.key = "virtualjaguar_usefastblitter";
235238
var.value = NULL;
@@ -285,7 +288,7 @@ static void check_variables(void)
285288
enable_alt_inputs = false;
286289
}
287290

288-
for (int i = 0; i < 2; i++)
291+
for (i = 0; i < 2; i++)
289292
{
290293
char key[64];
291294
var.key = key;

0 commit comments

Comments
 (0)