Skip to content
Permalink
Browse files

WII: Fix reset_cb prototype for newer versions of libogc

  • Loading branch information...
lephilousophe committed Sep 23, 2019
1 parent 8db65d0 commit 24e786d1f099cc4cde439aba257ede4f7c815c50
Showing with 7 additions and 0 deletions.
  1. +7 −0 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();

0 comments on commit 24e786d

Please sign in to comment.
You can’t perform that action at this time.