mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 15:15:39 +00:00
silence unused function warning for SDL_endswith() on non-linux.
This commit is contained in:
parent
4071573241
commit
787cd580ee
|
@ -1954,6 +1954,7 @@ SDL_IsGameController(int device_index)
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__LINUX__)
|
||||||
static SDL_bool SDL_endswith(const char *string, const char *suffix)
|
static SDL_bool SDL_endswith(const char *string, const char *suffix)
|
||||||
{
|
{
|
||||||
size_t string_length = string ? SDL_strlen(string) : 0;
|
size_t string_length = string ? SDL_strlen(string) : 0;
|
||||||
|
@ -1966,6 +1967,7 @@ static SDL_bool SDL_endswith(const char *string, const char *suffix)
|
||||||
}
|
}
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return 1 if the game controller should be ignored by SDL
|
* Return 1 if the game controller should be ignored by SDL
|
||||||
|
|
Loading…
Reference in a new issue