mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 04:56:07 +00:00
Fix strpbrk() discarded const qualifier
(cherry picked from commit c45be94938)
This commit is contained in:
parent
ffd2696516
commit
e8f600bf46
1 changed files with 1 additions and 1 deletions
|
|
@ -2479,7 +2479,7 @@ int SDL_vasprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list
|
|||
char * SDL_strpbrk(const char *str, const char *breakset)
|
||||
{
|
||||
#ifdef HAVE_STRPBRK
|
||||
return strpbrk(str, breakset);
|
||||
return SDL_const_cast(char *, strpbrk(str, breakset));
|
||||
#else
|
||||
|
||||
for (; *str; str++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue