From 86d5a950996df3ce602df6edf6a03a875b98af6e Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 14 Jul 2013 13:27:19 +0200 Subject: [PATCH] Fixed compiler warnings in test programs by adding includes directives. --- test/testlock.c | 1 + test/testnative.c | 2 ++ test/testshader.c | 1 + 3 files changed, 4 insertions(+) diff --git a/test/testlock.c b/test/testlock.c index e77a2c42d..c8b6579c5 100644 --- a/test/testlock.c +++ b/test/testlock.c @@ -16,6 +16,7 @@ #include #include +#include /* for atexit() */ #include "SDL.h" #include "SDL_mutex.h" diff --git a/test/testnative.c b/test/testnative.c index 2579b18b9..3434dc2a9 100644 --- a/test/testnative.c +++ b/test/testnative.c @@ -12,6 +12,8 @@ /* Simple program: Create a native window and attach an SDL renderer */ #include +#include /* for srand() */ +#include /* for time() */ #include "testnative.h" diff --git a/test/testshader.c b/test/testshader.c index 4aabd5d65..95ce2b97a 100644 --- a/test/testshader.c +++ b/test/testshader.c @@ -11,6 +11,7 @@ */ /* This is a simple example of using GLSL shaders with SDL */ +#include /* for printf() */ #include "SDL.h" #ifdef HAVE_OPENGL