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 5429 76329ba1fa5c
parent 5428 cff5d3cd5777
child 5430 1b318d81c85f
Only compile the NDS renderer if specified in the config file.
src/render/nds/SDL_ndsrender.c
--- a/src/render/nds/SDL_ndsrender.c	Sun Mar 06 21:18:36 2011 -0800
+++ b/src/render/nds/SDL_ndsrender.c	Sun Mar 06 21:19:02 2011 -0800
@@ -19,6 +19,9 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
+
+#if SDL_VIDEO_RENDER_NDS
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,8 +29,6 @@
 
 #include <gl2d.h>
 
-#include "SDL_config.h"
-
 #include "SDL_video.h"
 #include "../../video/SDL_sysvideo.h"
 #include "SDL_render.h"
@@ -361,4 +362,6 @@
      }
 };
 
+#endif /* SDL_VIDEO_RENDER_NDS */
+
 /* vi: set ts=4 sw=4 expandtab: */