From 38b9c9117d72c90e93a55aaeff201e9ce1bbb477 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 4 Feb 2026 14:40:26 -0800
Subject: [PATCH] Fixed warning: no previous prototype for function
'SDL_PrivateIsGamepadPlatformMatch'
(cherry picked from commit cd14bf3d00c38daafe0ccbf53b1e906aa96970bb)
---
src/joystick/SDL_gamepad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/joystick/SDL_gamepad.c b/src/joystick/SDL_gamepad.c
index 09f11e133a990..e05269088b33d 100644
--- a/src/joystick/SDL_gamepad.c
+++ b/src/joystick/SDL_gamepad.c
@@ -2360,7 +2360,7 @@ static GamepadMapping_t *SDL_PrivateGetGamepadMapping(SDL_JoystickID instance_id
return mapping;
}
-bool SDL_PrivateIsGamepadPlatformMatch(const char *platform, size_t platform_len)
+static bool SDL_PrivateIsGamepadPlatformMatch(const char *platform, size_t platform_len)
{
#ifdef SDL_PLATFORM_MACOS
// We also accept the older SDL2 platform name for macOS