mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 21:19:11 +00:00
Fixed evdev using standard C functions instead of SDL functions
This commit is contained in:
parent
45cbee81df
commit
e9014ee769
1 changed files with 2 additions and 2 deletions
|
@ -188,9 +188,9 @@ SDL_EVDEV_Init(void)
|
||||||
ROM. */
|
ROM. */
|
||||||
char* rest = (char*) devices;
|
char* rest = (char*) devices;
|
||||||
char* spec;
|
char* spec;
|
||||||
while ((spec = strtok_r(rest, ",", &rest))) {
|
while ((spec = SDL_strtokr(rest, ",", &rest))) {
|
||||||
char* endofcls = 0;
|
char* endofcls = 0;
|
||||||
long cls = strtol(spec, &endofcls, 0);
|
long cls = SDL_strtol(spec, &endofcls, 0);
|
||||||
if (endofcls)
|
if (endofcls)
|
||||||
SDL_EVDEV_device_added(endofcls + 1, cls);
|
SDL_EVDEV_device_added(endofcls + 1, cls);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue