8d9706
From 52f262d8b31ee231a95f5504939a4c7813272848 Mon Sep 17 00:00:00 2001
8d9706
From: Wim Taymans <wtaymans@redhat.com>
8d9706
Date: Sat, 15 Feb 2020 11:20:40 +0100
8d9706
Subject: [PATCH] Don't use C99 features
8d9706
8d9706
---
8d9706
 src/video/SDL_pixels.c | 3 ++-
8d9706
 1 file changed, 2 insertions(+), 1 deletion(-)
8d9706
8d9706
diff --git a/src/video/SDL_pixels.c b/src/video/SDL_pixels.c
8d9706
index 44626b749..17f1a7199 100644
8d9706
--- a/src/video/SDL_pixels.c
8d9706
+++ b/src/video/SDL_pixels.c
8d9706
@@ -292,10 +292,11 @@ void SDL_DitherColors(SDL_Color *colors, int bpp)
8d9706
 Uint16 SDL_CalculatePitch(SDL_Surface *surface)
8d9706
 {
8d9706
 	unsigned int pitch = 0;
8d9706
+	Uint8 byte;
8d9706
 
8d9706
 	/* Surface should be 4-byte aligned for speed */
8d9706
 	/* The code tries to prevent from an Uint16 overflow. */;
8d9706
-	for (Uint8 byte = surface->format->BytesPerPixel; byte; byte--) {
8d9706
+	for (byte = surface->format->BytesPerPixel; byte; byte--) {
8d9706
 		pitch += (unsigned int)surface->w;
8d9706
 		if (pitch < surface->w) {
8d9706
 			SDL_SetError("A scanline is too wide");
8d9706
-- 
8d9706
2.24.1
8d9706