From 6bd87635ee63b594a9347337a78ec0034fc8f3b1 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 19 Mar 2017 22:17:01 +0100 Subject: [PATCH] iOS: Fixed compiling template on C89 compilers. --- Xcode-iOS/Template/SDL iOS Application/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xcode-iOS/Template/SDL iOS Application/main.c b/Xcode-iOS/Template/SDL iOS Application/main.c index 8dc00706f31b9..52fd9a49a9eee 100644 --- a/Xcode-iOS/Template/SDL iOS Application/main.c +++ b/Xcode-iOS/Template/SDL iOS Application/main.c @@ -5,6 +5,8 @@ */ #include "SDL.h" +#include +#include #include #define SCREEN_WIDTH 320 @@ -20,6 +22,7 @@ void render(SDL_Renderer *renderer) { + SDL_Rect rect; Uint8 r, g, b; /* Clear the screen */ @@ -27,7 +30,6 @@ render(SDL_Renderer *renderer) SDL_RenderClear(renderer); /* Come up with a random rectangle */ - SDL_Rect rect; rect.w = randomInt(64, 128); rect.h = randomInt(64, 128); rect.x = randomInt(0, SCREEN_WIDTH);