Fixes for C23 Support (#2138)
* fixes for c23 support * include global.h in m4a.c & remove <string.h> include
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user