Fixed build

This commit is contained in:
Sam Lantinga 2024-01-06 08:33:30 -08:00
parent e1c3dcb403
commit ca3b8fe91d
3 changed files with 4 additions and 3 deletions

View file

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

View file

@ -262,6 +262,9 @@ extern void SDL_LoadVIDPIDListFromHints(SDL_vidpid_list *list, const char *inclu
extern SDL_bool SDL_VIDPIDInList(Uint16 vendor_id, Uint16 product_id, const SDL_vidpid_list *list); extern SDL_bool SDL_VIDPIDInList(Uint16 vendor_id, Uint16 product_id, const SDL_vidpid_list *list);
extern void SDL_FreeVIDPIDList(SDL_vidpid_list *list); extern void SDL_FreeVIDPIDList(SDL_vidpid_list *list);
/* This is in SDL_gamecontroller.c */
extern SDL_GameControllerType SDL_GetGameControllerTypeFromString(const char *str);
/* Ends C function definitions when using C++ */ /* Ends C function definitions when using C++ */
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -34,8 +34,6 @@
#define SDL_HINT_STEAM_VIRTUAL_GAMEPAD_INFO_FILE "SteamVirtualGamepadInfo" #define SDL_HINT_STEAM_VIRTUAL_GAMEPAD_INFO_FILE "SteamVirtualGamepadInfo"
extern SDL_GameControllerType SDL_GetGameControllerTypeFromString(const char *str);
static char *SDL_steam_virtual_gamepad_info_file SDL_GUARDED_BY(SDL_joystick_lock) = NULL; static char *SDL_steam_virtual_gamepad_info_file SDL_GUARDED_BY(SDL_joystick_lock) = NULL;
static Uint64 SDL_steam_virtual_gamepad_info_file_mtime SDL_GUARDED_BY(SDL_joystick_lock) = 0; static Uint64 SDL_steam_virtual_gamepad_info_file_mtime SDL_GUARDED_BY(SDL_joystick_lock) = 0;
static Uint32 SDL_steam_virtual_gamepad_info_check_time SDL_GUARDED_BY(SDL_joystick_lock) = 0; static Uint32 SDL_steam_virtual_gamepad_info_check_time SDL_GUARDED_BY(SDL_joystick_lock) = 0;