diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2017-03-19 22:17:01 +0100 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2017-03-19 22:17:01 +0100 |
commit | b59c0eabed40b8cf15bbd20cfceb43c47d352f34 (patch) | |
tree | b4069f2c4ab2d3e1acfac1ed42e89c891513bbd5 /Xcode-iOS | |
parent | 6142a07e06d75aa92f5303c036ac3a60270d8e7f (diff) |
iOS: Fixed compiling template on C89 compilers.
Diffstat (limited to 'Xcode-iOS')
-rw-r--r-- | Xcode-iOS/Template/SDL iOS Application/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xcode-iOS/Template/SDL iOS Application/main.c b/Xcode-iOS/Template/SDL iOS Application/main.c index 8dc00706f3..52fd9a49a9 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 <stdio.h> +#include <stdlib.h> #include <time.h> #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); |