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

Commit

Permalink
Patch to fix includes from Frank Zago
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 16, 2011
1 parent 56493dd commit 5958ee8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Makefile.ds
Expand Up @@ -25,7 +25,7 @@ TARGET = libSDL.a
CFLAGS = -mthumb -mthumb-interwork \
-march=armv5te -mtune=arm946e-s \
-O2 -Wall -Wwrite-strings -Wpointer-arith \
-DARM9 -D__NDS__ -I$(DEVKITPRO)/libnds/include -DENABLE_NDS -DNO_SIGNAL_H -DDISABLE_THREADS -DPACKAGE=\"SDL\" -DVERSION=\"1.3\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DARM9 -D__NDS__ -I$(DEVKITPRO)/libnds/include -DENABLE_NDS -DNO_SIGNAL_H -DDISABLE_THREADS -DPACKAGE=\"SDL\" -DVERSION=\"1.3\" -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -Iinclude

#src/audio/disk/SDL_diskaudio.c \
#src/audio/dummy/SDL_dummyaudio.c \
Expand Down Expand Up @@ -122,8 +122,7 @@ all: $(TARGET) install nds_test
src/atomic/SDL_spinlock.o: src/atomic/SDL_spinlock.c
$(CC) $(CFLAGS) -mno-thumb -o $@ -c $^

$(TARGET): copy_config \
$(OBJS)
$(TARGET): copy_config $(OBJS)
$(AR) rc $(TARGET) $(OBJS)
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1

Expand Down
4 changes: 2 additions & 2 deletions src/events/nds/SDL_ndsgesture.c
Expand Up @@ -24,8 +24,8 @@
/* No supported under the NDS because of math operations. */

#include "SDL_events.h"
#include "SDL_events_c.h"
#include "SDL_gesture_c.h"
#include "../SDL_events_c.h"
#include "../SDL_gesture_c.h"

int SDL_GestureAddTouch(SDL_Touch* touch)
{
Expand Down
4 changes: 2 additions & 2 deletions src/joystick/nds/SDL_sysjoystick.c
Expand Up @@ -31,8 +31,8 @@
#include "SDL_error.h"
#include "SDL_events.h"
#include "SDL_joystick.h"
#include "SDL_sysjoystick.h"
#include "SDL_joystick_c.h"
#include "../SDL_sysjoystick.h"
#include "../SDL_joystick_c.h"

#include "../../video/nds/SDL_ndsevents_c.h"

Expand Down
2 changes: 1 addition & 1 deletion src/thread/nds/SDL_systhread.c
Expand Up @@ -29,7 +29,7 @@ static char rcsid =

#include "SDL_error.h"
#include "SDL_thread.h"
#include "SDL_systhread.h"
#include "../SDL_systhread.h"

int
SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
Expand Down
6 changes: 3 additions & 3 deletions src/video/nds/SDL_ndsvideo.c
Expand Up @@ -35,9 +35,9 @@

#include "SDL_video.h"
#include "SDL_mouse.h"
#include "SDL_sysvideo.h"
#include "SDL_pixels_c.h"
#include "SDL_events_c.h"
#include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h"
#include "../../events/SDL_events_c.h"
#include "SDL_render.h"
#include "SDL_ndsvideo.h"
#include "SDL_ndsevents_c.h"
Expand Down

0 comments on commit 5958ee8

Please sign in to comment.