fixed compilation error for SDL 1.2 target
[rocksndiamonds.git] / src / events.c
index 9f18adbe8b413dce59899fe9ac17cb35cec9243a..37d7c0d72b05b7ef907324589db997b353d54312 100644 (file)
@@ -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)