Fixed compiler warnings in test programs by adding includes directives.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 14 Jul 2013 13:27:19 +0200
changeset 7442 a65a1c17af2b
parent 7441 468877c2135a
child 7443 58c5fcba814d
Fixed compiler warnings in test programs by adding includes directives.
test/testlock.c
test/testnative.c
test/testshader.c
--- a/test/testlock.c	Sat Jul 13 21:56:31 2013 -0400
+++ b/test/testlock.c	Sun Jul 14 13:27:19 2013 +0200
@@ -16,6 +16,7 @@
 
 #include <signal.h>
 #include <stdio.h>
+#include <stdlib.h> /* for atexit() */
 
 #include "SDL.h"
 #include "SDL_mutex.h"
--- a/test/testnative.c	Sat Jul 13 21:56:31 2013 -0400
+++ b/test/testnative.c	Sun Jul 14 13:27:19 2013 +0200
@@ -12,6 +12,8 @@
 /* Simple program:  Create a native window and attach an SDL renderer */
 
 #include <stdio.h>
+#include <stdlib.h> /* for srand() */
+#include <time.h> /* for time() */
 
 #include "testnative.h"
 
--- a/test/testshader.c	Sat Jul 13 21:56:31 2013 -0400
+++ b/test/testshader.c	Sun Jul 14 13:27:19 2013 +0200
@@ -11,6 +11,7 @@
 */
 /* This is a simple example of using GLSL shaders with SDL */
 
+#include <stdio.h> /* for printf() */
 #include "SDL.h"
 
 #ifdef HAVE_OPENGL