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

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

Sam Lantinga 2 лет назад
Родитель
Сommit
c309546e8c
1 измененных файлов с 1 добавлено и 1 удалено
  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;