mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed build
This commit is contained in:
@@ -353,7 +353,6 @@ int SDL_RemoveTimer(SDL_TimerID id)
|
|||||||
{
|
{
|
||||||
SDL_TimerData *data = &SDL_timer_data;
|
SDL_TimerData *data = &SDL_timer_data;
|
||||||
SDL_TimerMap *prev, *entry;
|
SDL_TimerMap *prev, *entry;
|
||||||
SDL_bool canceled = SDL_FALSE;
|
|
||||||
|
|
||||||
if (!id) {
|
if (!id) {
|
||||||
return SDL_InvalidParamError("id");
|
return SDL_InvalidParamError("id");
|
||||||
@@ -377,7 +376,6 @@ int SDL_RemoveTimer(SDL_TimerID id)
|
|||||||
if (entry) {
|
if (entry) {
|
||||||
if (!SDL_AtomicGet(&entry->timer->canceled)) {
|
if (!SDL_AtomicGet(&entry->timer->canceled)) {
|
||||||
SDL_AtomicSet(&entry->timer->canceled, 1);
|
SDL_AtomicSet(&entry->timer->canceled, 1);
|
||||||
canceled = SDL_TRUE;
|
|
||||||
}
|
}
|
||||||
SDL_free(entry);
|
SDL_free(entry);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user