Permalink
Browse files

WII: Fix compilation with devkitPPC r32

  • Loading branch information...
ccawley2011 committed Aug 16, 2018
1 parent df236f1 commit e4ce05f3951fea5411bc377b183855eeffe2dcc5
Showing with 10 additions and 1 deletion.
  1. +1 −0 backends/fs/wii/wii-fs-factory.cpp
  2. +1 −1 backends/platform/wii/main.cpp
  3. +8 −0 configure
@@ -24,6 +24,7 @@

#define FORBIDDEN_SYMBOL_EXCEPTION_printf
#define FORBIDDEN_SYMBOL_EXCEPTION_getcwd
#define FORBIDDEN_SYMBOL_EXCEPTION_time_h

#include <unistd.h>

@@ -52,7 +52,7 @@ extern "C" {
bool reset_btn_pressed = false;
bool power_btn_pressed = false;

void reset_cb(void) {
void reset_cb(u32, void*) {
#ifdef DEBUG_WII_GDB
printf("attach gdb now\n");
_break();
@@ -2693,6 +2693,10 @@ case $_host_os in
# retarded toolchain patch forces --gc-sections, overwrite it
append_var LDFLAGS "-Wl,--no-gc-sections"
fi
if test -d "$DEVKITPRO/portlibs/ppc" ; then
append_var CXXFLAGS "-isystem $DEVKITPRO/portlibs/ppc/include"
append_var LDFLAGS "-L$DEVKITPRO/portlibs/ppc/lib"
fi
;;
haiku*)
append_var DEFINES "-DSYSTEM_NOT_SUPPORTING_D_TYPE"
@@ -2873,6 +2877,10 @@ case $_host_os in
# retarded toolchain patch forces --gc-sections, overwrite it
append_var LDFLAGS "-Wl,--no-gc-sections"
fi
if test -d "$DEVKITPRO/portlibs/ppc" ; then
append_var CXXFLAGS "-isystem $DEVKITPRO/portlibs/ppc/include"
append_var LDFLAGS "-L$DEVKITPRO/portlibs/ppc/lib"
fi
;;
wince)
_optimization_level=-O3

0 comments on commit e4ce05f

Please sign in to comment.