test/testgamecontroller.c
changeset 6771 55337ff4256f
parent 6690 9548c8a58103
child 6914 8a9915ab24f0
     1.1 --- a/test/testgamecontroller.c	Sat Dec 22 20:13:25 2012 -0800
     1.2 +++ b/test/testgamecontroller.c	Sat Dec 22 20:43:51 2012 -0800
     1.3 @@ -18,6 +18,8 @@
     1.4  
     1.5  #include "SDL.h"
     1.6  
     1.7 +#ifndef SDL_JOYSTICK_DISABLED
     1.8 +
     1.9  #ifdef __IPHONEOS__
    1.10  #define SCREEN_WIDTH	320
    1.11  #define SCREEN_HEIGHT	480
    1.12 @@ -203,3 +205,14 @@
    1.13  
    1.14      return (0);
    1.15  }
    1.16 +
    1.17 +#else
    1.18 +
    1.19 +int
    1.20 +main(int argc, char *argv[])
    1.21 +{
    1.22 +    fprintf(stderr, "SDL compiled without Joystick support.\n");
    1.23 +    exit(1);
    1.24 +}
    1.25 +
    1.26 +#endif