From b614a5d288e93b6073be2da617c2d595d9e137ff Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Thu, 5 Jan 2023 02:10:01 +0100 Subject: [PATCH] Fix C89 build error --- src/drivers/libretro/libretro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/libretro/libretro.c b/src/drivers/libretro/libretro.c index 5f121ce01..3d617fa60 100644 --- a/src/drivers/libretro/libretro.c +++ b/src/drivers/libretro/libretro.c @@ -2240,8 +2240,9 @@ static void check_variables(bool startup) void add_powerpad_input(unsigned port, uint32 variant, uint32_t *ppdata) { + unsigned k; const uint32_t* map = (variant == RETRO_DEVICE_POWERPADA) ? powerpadamap : powerpadbmap; - for (unsigned k = 0 ; k < 12 ; k++) + for (k = 0 ; k < 12 ; k++) if (input_cb(0, RETRO_DEVICE_KEYBOARD, 0, map[k])) *ppdata |= (1 << k); }