Rename SDL_strtokr() to SDL_strtok_r()

Fixes https://github.com/libsdl-org/SDL/issues/7914
This commit is contained in:
Sam Lantinga 2023-07-03 06:19:30 -07:00
parent b8d6023a91
commit f010411492
12 changed files with 29 additions and 15 deletions

View file

@ -192,7 +192,7 @@ int SDL_EVDEV_Init(void)
ROM. */
char *rest = (char *)devices;
char *spec;
while ((spec = SDL_strtokr(rest, ",", &rest))) {
while ((spec = SDL_strtok_r(rest, ",", &rest))) {
char *endofcls = 0;
long cls = SDL_strtol(spec, &endofcls, 0);
if (endofcls) {