Fixup some includes for macOS

This commit is contained in:
Omar Rizwan
2024-06-18 18:31:27 -04:00
parent 62c247f432
commit 6e1c2cfedc
5 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
// #include "object_list_processor.h" // #include "object_list_processor.h"
// #include "print.h" // #include "print.h"
#include "save_file.h" #include "save_file.h"
// #include "sound_init.h" #include "sound_init.h"
// #include "thread6.h" // #include "thread6.h"
#include "../../load_anim_data.h" #include "../../load_anim_data.h"
+1
View File
@@ -14,6 +14,7 @@
#include <seq_ids.h> #include <seq_ids.h>
#include <sm64.h> #include <sm64.h>
#include "sound_init.h" #include "sound_init.h"
#include "../../play_sound.h"
//#include "rumble_init.h" //#include "rumble_init.h"
#define MUSIC_NONE 0xFFFF #define MUSIC_NONE 0xFFFF
+5
View File
@@ -3,8 +3,13 @@
#include "ultratypes.h" #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. // Old deprecated functions from strings.h, replaced by memcpy/memset.
extern void bcopy(const void *, void *, size_t); extern void bcopy(const void *, void *, size_t);
extern void bzero(void *, size_t); extern void bzero(void *, size_t);
#endif
#endif /* !_OS_LIBC_H_ */ #endif /* !_OS_LIBC_H_ */
+1
View File
@@ -5,6 +5,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h>
#include "convUtils.h" #include "convUtils.h"
#include "convTypes.h" #include "convTypes.h"
+3
View File
@@ -1,9 +1,12 @@
#include "load_audio_data.h" #include "load_audio_data.h"
#include "decomp/tools/convUtils.h" #include "decomp/tools/convUtils.h"
#include "decomp/audio/external.h"
#include "decomp/audio/load.h" #include "decomp/audio/load.h"
#include "decomp/audio/load_dat.h" #include "decomp/audio/load_dat.h"
#include <string.h>
bool g_is_audio_initialized = false; bool g_is_audio_initialized = false;
extern void load_audio_banks( const uint8_t *rom ) { extern void load_audio_banks( const uint8_t *rom ) {