Просмотр исходного кода

Fixed warning: no previous prototype for function 'SDL_PrivateIsGamepadPlatformMatch'

(cherry picked from commit cd14bf3d00c38daafe0ccbf53b1e906aa96970bb)
Sam Lantinga 4 недель назад
Родитель
Сommit
38b9c9117d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/joystick/SDL_gamepad.c

+ 1 - 1
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