From: Holger Schemel Date: Mon, 8 Oct 2018 06:05:57 +0000 (+0200) Subject: fixed compilation error for SDL 1.2 target X-Git-Tag: 4.1.1.0^0 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e5035e129af2e6bc1540c050e48be541f1a7fe5a;p=rocksndiamonds.git fixed compilation error for SDL 1.2 target --- diff --git a/src/events.c b/src/events.c index 9f18adbe..37d7c0d7 100644 --- a/src/events.c +++ b/src/events.c @@ -349,6 +349,7 @@ void EventLoop(void) void ClearAutoRepeatKeyEvents(void) { +#if defined(TARGET_SDL2) while (PendingEvent()) { Event next_event; @@ -362,6 +363,7 @@ void ClearAutoRepeatKeyEvents(void) else break; } +#endif } void ClearEventQueue(void)