Only compile the NDS renderer if specified in the config file.
--- 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: */