mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
Fix strpbrk() discarded const qualifier
This commit is contained in:
parent
b4b9a037b6
commit
c45be94938
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