From 2970cddc4444b404919ac08590b0d7b7770342da Mon Sep 17 00:00:00 2001 From: dborth Date: Sat, 23 Aug 2008 03:20:54 +0000 Subject: [PATCH] fix di compile issue --- source/ngc/dvd.cpp | 4 ++++ source/ngc/filesel.cpp | 4 ++++ source/ngc/menu.cpp | 8 ++++++-- source/ngc/snes9xGX.cpp | 4 ++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/source/ngc/dvd.cpp b/source/ngc/dvd.cpp index a6bc9c6..9e6e38b 100644 --- a/source/ngc/dvd.cpp +++ b/source/ngc/dvd.cpp @@ -13,7 +13,11 @@ #include #ifdef WII_DVD +#ifdef __cplusplus +extern "C" { #include +} +#endif #endif #include "menudraw.h" diff --git a/source/ngc/filesel.cpp b/source/ngc/filesel.cpp index 647d996..a9c9352 100644 --- a/source/ngc/filesel.cpp +++ b/source/ngc/filesel.cpp @@ -20,7 +20,11 @@ #include #ifdef WII_DVD +#ifdef __cplusplus +extern "C" { #include +} +#endif #endif #include "snes9x.h" diff --git a/source/ngc/menu.cpp b/source/ngc/menu.cpp index cc078ce..546baa0 100644 --- a/source/ngc/menu.cpp +++ b/source/ngc/menu.cpp @@ -19,7 +19,11 @@ #include #ifdef WII_DVD +#ifdef __cplusplus +extern "C" { #include +} +#endif #endif #include "snes9x.h" @@ -327,7 +331,7 @@ void CheatMenu() int offset = 0; int redraw = 1; int selectit = 0; - + u32 p = 0; u32 wp = 0; u32 ph = 0; @@ -377,7 +381,7 @@ void CheatMenu() gc_sx = PAD_SubStickX (0); p = PAD_ButtonsDown (0); ph = PAD_ButtonsHeld (0); - + #ifdef HW_RVL wm_ay = WPAD_StickY (0, 0); wm_sx = WPAD_StickX (0, 1); diff --git a/source/ngc/snes9xGX.cpp b/source/ngc/snes9xGX.cpp index 04c5ab2..fa55ff3 100644 --- a/source/ngc/snes9xGX.cpp +++ b/source/ngc/snes9xGX.cpp @@ -166,7 +166,11 @@ #include #ifdef WII_DVD +#ifdef __cplusplus +extern "C" { #include +} +#endif #endif #include "snes9x.h"