SDL: Fixed build error with C90 compilers

From 67cb548bef31e2f4e46b504d1f12165e75e9ab17 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 20 Jan 2022 19:31:54 -0800
Subject: [PATCH] Fixed build error with C90 compilers

---
 src/joystick/windows/SDL_rawinputjoystick.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/joystick/windows/SDL_rawinputjoystick.c b/src/joystick/windows/SDL_rawinputjoystick.c
index f12661732ad..e63c747eefe 100644
--- a/src/joystick/windows/SDL_rawinputjoystick.c
+++ b/src/joystick/windows/SDL_rawinputjoystick.c
@@ -1491,6 +1491,8 @@ RAWINPUT_HandleStatePacket(SDL_Joystick *joystick, Uint8 *data, int size)
 
     if (ctx->trigger_hack) {
         SDL_bool has_trigger_data = SDL_FALSE;
+        int left_trigger = joystick->naxes - 2;
+        int right_trigger = joystick->naxes - 1;
 
 #ifdef SDL_JOYSTICK_RAWINPUT_XINPUT
         /* Prefer XInput over WindowsGamingInput, it continues to provide data in the background */
@@ -1505,8 +1507,6 @@ RAWINPUT_HandleStatePacket(SDL_Joystick *joystick, Uint8 *data, int size)
         }
 #endif /* SDL_JOYSTICK_RAWINPUT_WGI */
 
-        int left_trigger = joystick->naxes - 2;
-        int right_trigger = joystick->naxes - 1;
 #ifndef SDL_JOYSTICK_RAWINPUT_MATCH_TRIGGERS
         if (!has_trigger_data)
 #endif