aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Philousophe2019-09-23 12:47:24 +0200
committerLe Philousophe2019-10-09 13:33:11 +0200
commit24e786d1f099cc4cde439aba257ede4f7c815c50 (patch)
treec2b4fac520b99d580d94a6e02aa1d514ed69ab64
parent8db65d0b6ce1835f3c751311ea365c6fd1bf93cf (diff)
downloadscummvm-rg350-24e786d1f099cc4cde439aba257ede4f7c815c50.tar.gz
scummvm-rg350-24e786d1f099cc4cde439aba257ede4f7c815c50.tar.bz2
scummvm-rg350-24e786d1f099cc4cde439aba257ede4f7c815c50.zip
WII: Fix reset_cb prototype for newer versions of libogc
-rw-r--r--backends/platform/wii/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/wii/main.cpp b/backends/platform/wii/main.cpp
index 35d800a527..d33e968c64 100644
--- a/backends/platform/wii/main.cpp
+++ b/backends/platform/wii/main.cpp
@@ -33,6 +33,7 @@
#include "backends/plugins/wii/wii-provider.h"
#include <ogc/machine/processor.h>
+#include <ogc/libversion.h>
#include <fat.h>
#ifndef GAMECUBE
#include <wiiuse/wpad.h>
@@ -52,7 +53,13 @@ extern "C" {
bool reset_btn_pressed = false;
bool power_btn_pressed = false;
+#if ((_V_MAJOR_ > 1) || \
+ (_V_MAJOR_ == 1 && _V_MINOR_ > 8 ) || \
+ (_V_MAJOR_ == 1 && _V_MINOR_ == 8 && _V_PATCH_ >= 18))
+void reset_cb(u32, void *) {
+#else
void reset_cb(void) {
+#endif
#ifdef DEBUG_WII_GDB
printf("attach gdb now\n");
_break();