Only compile the NDS renderer if specified in the config file.
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Mar 2011 21:19:02 -0800
changeset 542976329ba1fa5c
parent 5428 cff5d3cd5777
child 5430 1b318d81c85f
Only compile the NDS renderer if specified in the config file.
src/render/nds/SDL_ndsrender.c
     1.1 --- a/src/render/nds/SDL_ndsrender.c	Sun Mar 06 21:18:36 2011 -0800
     1.2 +++ b/src/render/nds/SDL_ndsrender.c	Sun Mar 06 21:19:02 2011 -0800
     1.3 @@ -19,6 +19,9 @@
     1.4      Sam Lantinga
     1.5      slouken@libsdl.org
     1.6  */
     1.7 +#include "SDL_config.h"
     1.8 +
     1.9 +#if SDL_VIDEO_RENDER_NDS
    1.10  
    1.11  #include <stdio.h>
    1.12  #include <stdlib.h>
    1.13 @@ -26,8 +29,6 @@
    1.14  
    1.15  #include <gl2d.h>
    1.16  
    1.17 -#include "SDL_config.h"
    1.18 -
    1.19  #include "SDL_video.h"
    1.20  #include "../../video/SDL_sysvideo.h"
    1.21  #include "SDL_render.h"
    1.22 @@ -361,4 +362,6 @@
    1.23       }
    1.24  };
    1.25  
    1.26 +#endif /* SDL_VIDEO_RENDER_NDS */
    1.27 +
    1.28  /* vi: set ts=4 sw=4 expandtab: */