Skip to content

Commit

Permalink
fix compilation issues with new devkitPPC
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Aug 31, 2018
1 parent 442f4b6 commit d171856
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 6 deletions.
1 change: 1 addition & 0 deletions SDL/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/lib/
11 changes: 6 additions & 5 deletions SDL/src/timer/wii/SDL_systimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ Uint32 SDL_GetTicks (void)

void SDL_Delay (Uint32 ms)
{
struct timespec ts;

ts.tv_sec = ms/1000;
ts.tv_nsec = (ms-ts.tv_sec*1000)*1000000;
nanosleep(&ts);
struct timespec elapsed, tv;
elapsed.tv_sec = ms/1000;
elapsed.tv_nsec = (ms%1000)*1000000;
tv.tv_sec = elapsed.tv_sec;
tv.tv_nsec = elapsed.tv_nsec;
nanosleep(&tv, &elapsed);
}

#include "SDL_thread.h"
Expand Down
3 changes: 3 additions & 0 deletions SDL_gfx/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/include/
/lib/
/obj/
3 changes: 3 additions & 0 deletions SDL_image/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/include/
/lib/
/obj/
3 changes: 3 additions & 0 deletions SDL_mixer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/include/
/obj/
/lib/
2 changes: 1 addition & 1 deletion SDL_mixer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $(INCLUDE_DIR)/SDL_mixer.h: $(SRC_DIR)/SDL_mixer.h

# Compilation flags.
COMMON_FLAGS := -g -O3 -mrvl -Wall $(MACHDEP)
INCLUDES := -Iinclude -I$(LIBOGC_INC) -I$(LIBOGC_INC)/SDL -I$(LIBOGC_INC)/mpeg -I$(DEVKITPRO)/libsmpeg/include -Isrc/mikmod -Isrc/timidity -I../SDL/include
INCLUDES := -Iinclude -I$(LIBOGC_INC) -I$(LIBOGC_INC)/SDL -I$(LIBOGC_INC)/mpeg -I../smpeg/include -Isrc/mikmod -Isrc/timidity -I../SDL/include
# -include sys/wait.h
# -include sys/syslimits.h
# -Isrc/native_midi
Expand Down
3 changes: 3 additions & 0 deletions SDL_net/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/include/
/lib/
/obj/
3 changes: 3 additions & 0 deletions SDL_ttf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/lib/
/obj/
/include/
3 changes: 3 additions & 0 deletions smpeg/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/include/
/lib/
/obj/

0 comments on commit d171856

Please sign in to comment.