瀏覽代碼

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

Sam Lantinga 2 年之前
父節點
當前提交
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;