mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 07:32:04 -05:00
Fixup some includes for macOS
This commit is contained in:
parent
62c247f432
commit
6e1c2cfedc
5 changed files with 13 additions and 3 deletions
|
@ -35,7 +35,7 @@
|
|||
// #include "object_list_processor.h"
|
||||
// #include "print.h"
|
||||
#include "save_file.h"
|
||||
// #include "sound_init.h"
|
||||
#include "sound_init.h"
|
||||
// #include "thread6.h"
|
||||
#include "../../load_anim_data.h"
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <seq_ids.h>
|
||||
#include <sm64.h>
|
||||
#include "sound_init.h"
|
||||
#include "../../play_sound.h"
|
||||
//#include "rumble_init.h"
|
||||
|
||||
#define MUSIC_NONE 0xFFFF
|
||||
|
|
|
@ -3,8 +3,13 @@
|
|||
|
||||
#include "ultratypes.h"
|
||||
|
||||
// These are defined in macOS (BSD?), so we want to def them out.
|
||||
#ifndef __APPLE__
|
||||
|
||||
// Old deprecated functions from strings.h, replaced by memcpy/memset.
|
||||
extern void bcopy(const void *, void *, size_t);
|
||||
extern void bzero(void *, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* !_OS_LIBC_H_ */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include "convUtils.h"
|
||||
#include "convTypes.h"
|
||||
|
||||
|
@ -371,4 +372,4 @@ struct CTL* parse_ctl_data(unsigned char* ctlData, uintptr_t* pos){
|
|||
//
|
||||
|
||||
return ctl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
#include "load_audio_data.h"
|
||||
|
||||
#include "decomp/tools/convUtils.h"
|
||||
#include "decomp/audio/external.h"
|
||||
#include "decomp/audio/load.h"
|
||||
#include "decomp/audio/load_dat.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
bool g_is_audio_initialized = false;
|
||||
|
||||
extern void load_audio_banks( const uint8_t *rom ) {
|
||||
|
@ -25,4 +28,4 @@ extern void load_audio_banks( const uint8_t *rom ) {
|
|||
sound_reset( 0 );
|
||||
|
||||
g_is_audio_initialized = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue