Fixes for C23 Support (#2138)

* fixes for c23 support
* include global.h in m4a.c & remove <string.h> include
This commit is contained in:
Kurausukun
2025-05-19 04:11:59 -04:00
committed by GitHub
parent 16357c7e29
commit e1e7d1cf35
7 changed files with 51 additions and 8 deletions

View File

@@ -170,7 +170,11 @@ struct SoundChannel
struct MusicPlayerInfo;
#if !MODERN
typedef void (*MPlayFunc)();
#else
typedef void (*MPlayFunc)(...);
#endif
typedef void (*PlyNoteFunc)(u32, struct MusicPlayerInfo *, struct MusicPlayerTrack *);
typedef void (*CgbSoundFunc)(void);
typedef void (*CgbOscOffFunc)(u8);

View File

@@ -23,6 +23,10 @@
#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided")
#define NAKED __attribute__((naked))
#if MODERN
#define asm __asm__
#endif
/// IDE support
#if defined(__APPLE__) || defined(__CYGWIN__) || defined(__INTELLISENSE__)
// We define these when using certain IDEs to fool preproc

View File

@@ -316,7 +316,11 @@ struct STWIStatus
u8 recoveryCount;
u8 unk_16;
u8 unk_17;
#if !MODERN
void (*callbackM)();
#else
void (*callbackM)(...);
#endif
void (*callbackS)(u16);
void (*callbackID)(void);
union RfuPacket *txPacket;