From f3d177621bf41078f2fc4c28e1580264b83f105a Mon Sep 17 00:00:00 2001 From: dolphin6k Date: Fri, 18 Nov 2022 12:10:35 +0900 Subject: [PATCH] Corrected compile-time error on old platforms (ex: RHEL7) --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 3564ab571..a271cd6da 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -2663,7 +2663,8 @@ static void mainloop(void) int rest = SDL_PeepEvents(NULL, 1000, SDL_PEEKEVENT, SDL_MOUSEMOTION, SDL_MOUSEMOTION); - for (int i = 0; i < rest; i++) + int i; + for (i = 0; i < rest; i++) { SDL_PollEvent(&event); if (event.type != SDL_MOUSEMOTION) /* But keep any other events that could be there */