Explorar el Código

Fixed warning: no previous prototype for function 'SDL_PrivateIsGamepadPlatformMatch'

(cherry picked from commit cd14bf3d00c38daafe0ccbf53b1e906aa96970bb)
Sam Lantinga hace 1 mes
padre
commit
38b9c9117d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
     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