Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1419 - SDL_libgl2D.c breaks ndk-build
Browse files Browse the repository at this point in the history
Philip Taylor 2012-02-15 10:43:47 PST

render/nds/SDL_libgl2D.c unconditionally includes NDS-only code. SDL's
Android.mk compiles source files matching

  $(wildcard $(LOCAL_PATH)/src/render/*/*.c)

which includes that file, causing build errors when running ndk-build.
  • Loading branch information
slouken committed Feb 16, 2012
1 parent 423686c commit 22733ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/render/nds/SDL_libgl2D.c
Expand Up @@ -13,6 +13,9 @@
*
* A very small and simple DS rendering lib using the 3d core to render 2D stuff
*/
#include "SDL_config.h"

#if SDL_VIDEO_RENDER_NDS

#include "SDL_libgl2D.h"

Expand Down Expand Up @@ -308,3 +311,5 @@ void glSpriteScaleXY(int x, int y, s32 scaleX, s32 scaleY, int flipmode, const g
glPopMatrix(1);
g_depth++;
}

#endif /* SDL_VIDEO_RENDER_NDS */
4 changes: 4 additions & 0 deletions src/render/nds/SDL_libgl2D.h
Expand Up @@ -13,6 +13,9 @@
*
* A very small and simple DS rendering lib using the 3d core to render 2D stuff
*/
#include "SDL_config.h"

#if SDL_VIDEO_RENDER_NDS

#include <nds/arm9/videoGL.h>

Expand Down Expand Up @@ -148,3 +151,4 @@ void glBox(int x1, int y1, int x2, int y2, int color);
*/
void glBoxFilled(int x1, int y1, int x2, int y2, int color);

#endif /* SDL_VIDEO_RENDER_NDS */

0 comments on commit 22733ef

Please sign in to comment.