From b50c3013ea74298e2fa629c2254eec1edf930ffb Mon Sep 17 00:00:00 2001 From: retro100 Date: Thu, 22 Apr 2021 14:52:39 +0200 Subject: [PATCH] fix1: Small changes for update to current devkitPro/libogc version. --- Makefile | 9 +++++++-- src/platform/wii/menu.cpp | 1 + src/platform/wii/missingfunctions.cpp | 1 + src/platform/wii/wiihardware.cpp | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 904d0b6..b0aee03 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,11 @@ endif include $(DEVKITPPC)/wii_rules +# override the bin2o definition for disable header creation +define bin2o + bin2s -a 32 $< | $(AS) -o $( #include #include +#include #include #include "libwiigui/gui.h" diff --git a/src/platform/wii/missingfunctions.cpp b/src/platform/wii/missingfunctions.cpp index 90bcbce..fb316fc 100644 --- a/src/platform/wii/missingfunctions.cpp +++ b/src/platform/wii/missingfunctions.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "dos_inc.h" static char tmp[MAXPATHLEN]; diff --git a/src/platform/wii/wiihardware.cpp b/src/platform/wii/wiihardware.cpp index 665966e..71a57cd 100644 --- a/src/platform/wii/wiihardware.cpp +++ b/src/platform/wii/wiihardware.cpp @@ -149,7 +149,7 @@ static void * PressKeys (void *arg) static bool gecko = false; static mutex_t gecko_mutex = 0; -static ssize_t __out_write(struct _reent *r, int fd, const char *ptr, size_t len) +static ssize_t __out_write(struct _reent *r, void* fd, const char *ptr, size_t len) { u32 level;