iOS: Fixed compiling demos on C89 compilers.

This commit is contained in:
Philipp Wiesemann 2016-04-01 21:14:49 +02:00
parent 831597f714
commit f3ca4e4d50
4 changed files with 10 additions and 7 deletions

View file

@ -278,6 +278,7 @@ main(int argc, char *argv[])
Uint32 startFrame; /* holds when frame started processing */
Uint32 endFrame; /* holds when frame ended processing */
Uint32 delay; /* calculated delay, how long should we wait before next frame? */
int i;
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {
fatalError("could not initialize SDL");
@ -342,7 +343,6 @@ main(int argc, char *argv[])
}
/* cleanup code, let's free up those sound buffers */
int i;
for (i = 0; i < NUM_DRUMS; i++) {
SDL_free(drums[i].buffer);
}