Small fixes for current devkitPro version.

This commit is contained in:
retro100 2021-02-05 12:13:40 +01:00
parent c9fc90cc15
commit 328bcd9a6a
5 changed files with 22 additions and 2 deletions

View File

@ -37,7 +37,8 @@ LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
# any extra libraries we wish to link with
#---------------------------------------------------------------------------------
LIBS := -lSDL -lfat -lwiiuse -lbte -lasnd -logc -lwiikeyboard \
-lpng -lvorbisidec -lfreetype -lz
-lpng -lvorbisidec -lfreetype -lz \
-lm -logg -lbz2 -laesnd
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing

17
src/globals.cpp Normal file
View File

@ -0,0 +1,17 @@
/*
Define DEFINE_GLOBALS if you have undefined reference errors
for font_ttf_size, botton_over_pcm_size, etc.
*/
//#define DEFINE_GLOBALS
#ifdef DEFINE_GLOBALS
#include <gccore.h>
extern const u32 font_ttf_size = 29244;
extern const u32 button_over_pcm_size = 2876;
extern const u32 button_click_pcm_size = 7204;
extern const u32 enter_ogg_size = 59779;
extern const u32 exit_ogg_size = 51898;
#endif

View File

@ -15,6 +15,7 @@
#include <wiiuse/wpad.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/param.h>
#include "libwiigui/gui.h"
#include "wiihardware.h"

View File

@ -4,6 +4,7 @@
#include <errno.h>
#include <libgen.h>
#include <sys/stat.h>
#include <sys/param.h>
#include "dos_inc.h"
static char tmp[MAXPATHLEN];

View File

@ -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;