Fixed warning: no previous prototype for function 'SDL_PrivateIsGamepadPlatformMatch'

This commit is contained in:
Sam Lantinga
2026-02-04 14:40:26 -08:00
parent 3b43b55e2a
commit cd14bf3d00

View File

@@ -2362,7 +2362,7 @@ static GamepadMapping_t *SDL_PrivateGetGamepadMapping(SDL_JoystickID instance_id
return mapping; 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 #ifdef SDL_PLATFORM_MACOS
// We also accept the older SDL2 platform name for macOS // We also accept the older SDL2 platform name for macOS