Skip to content

Commit de639ba

Browse files
committed
Fixed build with latest KallistiOS and GCC 15.1
1 parent d8b3069 commit de639ba

File tree

20 files changed

+85
-49
lines changed

20 files changed

+85
-49
lines changed

applications/games_menu/modules/app_menu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const char* GetCoversPath(uint8 device);
8181
void CreateMenuData(SendMessageCallBack *send_message_scan, SendMessageCallBack *send_message_optimizer
8282
, PostPVRCoverCallBack *post_pvr_cover, PostOptimizerCoverCallBack *post_optimizer_cover);
8383
void DestroyMenuData();
84-
bool CheckGdiOptimized();
84+
bool CheckGdiOptimized(int game_index);
8585
const char *GetFullGamePathByIndex(int game_index);
8686
void StopCDDA();
8787
bool CheckCDDA(int game_index);

applications/gdplay/modules/module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,11 @@ static void check_cd(void)
275275
cdrom_spin_down();
276276
}
277277

278-
static void *check_gdrom()
278+
static void *check_gdrom(void *arg)
279279
{
280280
int status, disc_type, cd_status;
281281
self.kill_gdrom_thd = 0;
282+
(void)arg;
282283

283284
while(self.kill_gdrom_thd == 0)
284285
{

applications/main/modules/module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ static void ShowDateTime(int force) {
315315
memcpy(&self.datetime, datetime, sizeof(*datetime));
316316
}
317317

318-
static void *ClockThread() {
318+
static void *ClockThread(void *arg) {
319+
(void)arg;
319320

320321
while(self.app->state & APP_STATE_OPENED) {
321322
ShowDateTime(0);

applications/speedtest/modules/module.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
*/
99

1010
#include "ds.h"
11-
#include "drivers/sd.h"
11+
#include <dc/sd.h>
12+
#include <kos/blockdev.h>
1213

1314
DEFAULT_MODULE_EXPORTS(app_speedtest);
1415

@@ -109,7 +110,7 @@ int test_sd_io(void) {
109110
if(!buf) {
110111
return -1;
111112
}
112-
if(sdc_blockdev_for_partition(0, &bdev, &pt)) {
113+
if(sd_blockdev_for_partition(0, &bdev, &pt)) {
113114
dbglog(DBG_DEBUG, "Couldn't get blockdev for partition!\n");
114115
free(buf);
115116
return -1;

applications/vmu_manager/modules/module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ static void show_port(int port, maple_device_t *dev)
450450
show_slots(port);
451451
}
452452

453-
static void *maple_scan()
453+
static void *maple_scan(void *arg)
454454
{
455+
(void)arg;
455456
self.thread_kill = 0;
456457
int port;
457458
maple_device_t *dev;

include/SDL/SDL_rwops.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#include "SDL_error.h"
3232

3333
#include "begin_code.h"
34+
35+
#if defined(__DREAMCAST__) || defined(_arch_dreamcast)
36+
#include <kos/fs.h>
37+
#endif
38+
3439
/* Set up for C function definitions, even when using C++ */
3540
#ifdef __cplusplus
3641
extern "C" {

lib/SDL/include/SDL_rwops.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
#include "SDL_error.h"
3232

3333
#include "begin_code.h"
34+
35+
#if defined(__DREAMCAST__) || defined(_arch_dreamcast)
36+
#include <kos/fs.h>
37+
#endif
38+
3439
/* Set up for C function definitions, even when using C++ */
3540
#ifdef __cplusplus
3641
extern "C" {
@@ -106,7 +111,7 @@ extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char
106111
extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose);
107112
#endif
108113

109-
#ifdef __DREAMCAST__
114+
#if defined(__DREAMCAST__) || defined(_arch_dreamcast)
110115
extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFD(file_t fd, int autoclose);
111116
#endif
112117

lib/SDL_gui/FileManager.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#include <assert.h>
21
#include <string.h>
32
#include <stdlib.h>
3+
#include <kos/fs.h>
4+
#include <kos/thread.h>
45

56
#include "SDL_gui.h"
67

modules/adx/LibADX/snddrv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ static void *snddrv_callback(snd_stream_hnd_t hnd, int len, int * actual) {
9494

9595
}
9696

97-
static void *snddrv_thread() {
97+
static void *snddrv_thread(void *arg) {
98+
(void)arg;
9899

99100
printf("SNDDRV: Rate - %i, Channels - %i\n", snddrv.rate, snddrv.channels);
100101

modules/ftpd/lftpd/lftpd.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ typedef struct {
3838
int (*handler) (lftpd_client_t* client, const char* arg);
3939
} command_t;
4040

41-
static int cmd_cwd();
42-
static int cmd_dele();
43-
static int cmd_epsv();
44-
static int cmd_feat();
45-
static int cmd_list();
46-
static int cmd_mkd();
47-
static int cmd_nlst();
48-
static int cmd_noop();
49-
static int cmd_pass();
50-
static int cmd_pasv();
51-
static int cmd_pwd();
52-
static int cmd_quit();
53-
static int cmd_rmd();
54-
static int cmd_retr();
55-
static int cmd_size();
56-
static int cmd_stor();
57-
static int cmd_syst();
58-
static int cmd_type();
59-
static int cmd_user();
41+
static int cmd_cwd(lftpd_client_t* client, const char* arg);
42+
static int cmd_dele(lftpd_client_t* client, const char* arg);
43+
static int cmd_epsv(lftpd_client_t* client, const char* arg);
44+
static int cmd_feat(lftpd_client_t* client, const char* arg);
45+
static int cmd_list(lftpd_client_t* client, const char* arg);
46+
static int cmd_mkd(lftpd_client_t* client, const char* arg);
47+
static int cmd_nlst(lftpd_client_t* client, const char* arg);
48+
static int cmd_noop(lftpd_client_t* client, const char* arg);
49+
static int cmd_pass(lftpd_client_t* client, const char* arg);
50+
static int cmd_pasv(lftpd_client_t* client, const char* arg);
51+
static int cmd_pwd(lftpd_client_t* client, const char* arg);
52+
static int cmd_quit(lftpd_client_t* client, const char* arg);
53+
static int cmd_rmd(lftpd_client_t* client, const char* arg);
54+
static int cmd_retr(lftpd_client_t* client, const char* arg);
55+
static int cmd_size(lftpd_client_t* client, const char* arg);
56+
static int cmd_stor(lftpd_client_t* client, const char* arg);
57+
static int cmd_syst(lftpd_client_t* client, const char* arg);
58+
static int cmd_type(lftpd_client_t* client, const char* arg);
59+
static int cmd_user(lftpd_client_t* client, const char* arg);
6060

6161
static command_t commands[] = {
6262
{ "CWD", cmd_cwd },

0 commit comments

Comments
 (0)