Browse Source

Fixed warning: no previous prototype for function 'SDL_GetGameControllerTypeFromString' [-Wmissing-prototypes]

Sam Lantinga 1 year ago
parent
commit
c309546e8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/joystick/SDL_gamecontroller.c

+ 1 - 1
src/joystick/SDL_gamecontroller.c

@@ -823,7 +823,7 @@ SDL_COMPILE_TIME_ASSERT(map_StringForGameControllerType, SDL_arraysize(map_Strin
 /*
  * convert a string to its enum equivalent
  */
-SDL_GameControllerType SDL_GetGameControllerTypeFromString(const char *str)
+static SDL_GameControllerType SDL_GetGameControllerTypeFromString(const char *str)
 {
     int i;