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 7442a65a1c17af2b
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
     1.1 --- a/test/testlock.c	Sat Jul 13 21:56:31 2013 -0400
     1.2 +++ b/test/testlock.c	Sun Jul 14 13:27:19 2013 +0200
     1.3 @@ -16,6 +16,7 @@
     1.4  
     1.5  #include <signal.h>
     1.6  #include <stdio.h>
     1.7 +#include <stdlib.h> /* for atexit() */
     1.8  
     1.9  #include "SDL.h"
    1.10  #include "SDL_mutex.h"
     2.1 --- a/test/testnative.c	Sat Jul 13 21:56:31 2013 -0400
     2.2 +++ b/test/testnative.c	Sun Jul 14 13:27:19 2013 +0200
     2.3 @@ -12,6 +12,8 @@
     2.4  /* Simple program:  Create a native window and attach an SDL renderer */
     2.5  
     2.6  #include <stdio.h>
     2.7 +#include <stdlib.h> /* for srand() */
     2.8 +#include <time.h> /* for time() */
     2.9  
    2.10  #include "testnative.h"
    2.11  
     3.1 --- a/test/testshader.c	Sat Jul 13 21:56:31 2013 -0400
     3.2 +++ b/test/testshader.c	Sun Jul 14 13:27:19 2013 +0200
     3.3 @@ -11,6 +11,7 @@
     3.4  */
     3.5  /* This is a simple example of using GLSL shaders with SDL */
     3.6  
     3.7 +#include <stdio.h> /* for printf() */
     3.8  #include "SDL.h"
     3.9  
    3.10  #ifdef HAVE_OPENGL