SDL: Fix build (C90 declaration order) (24269)

From 24269007d8238f7d21f377efc372e838d8636259 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Tue, 12 Mar 2024 22:05:37 -0400
Subject: [PATCH] Fix build (C90 declaration order)

(cherry picked from commit 88bdc028ec6793c23b38e5c9c0b2cb925a3041ce)
---
 src/video/wayland/SDL_waylandmouse.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/video/wayland/SDL_waylandmouse.c b/src/video/wayland/SDL_waylandmouse.c
index 178317cb7ceda..4b7264588dd0b 100644
--- a/src/video/wayland/SDL_waylandmouse.c
+++ b/src/video/wayland/SDL_waylandmouse.c
@@ -380,12 +380,11 @@ static int create_buffer_from_shm(Wayland_CursorData *d,
     SDL_VideoDevice *vd = SDL_GetVideoDevice();
     SDL_VideoData *data = (SDL_VideoData *)vd->driverdata;
     struct wl_shm_pool *shm_pool;
+    int shm_fd;
 
     int stride = width * 4;
     d->shm_data_size = stride * height;
 
-    int shm_fd;
-
     shm_fd = wayland_create_tmp_file(d->shm_data_size);
     if (shm_fd < 0) {
         return SDL_SetError("Creating mouse cursor buffer failed.");