diff --git a/Source/Core/Common/Src/CommonFuncs.h b/Source/Core/Common/Src/CommonFuncs.h index e50e036612..ff6efe993e 100644 --- a/Source/Core/Common/Src/CommonFuncs.h +++ b/Source/Core/Common/Src/CommonFuncs.h @@ -25,8 +25,13 @@ #endif #ifndef _WIN32 + +#if defined __APPLE__ +char* strndup (char const *s, size_t n); +#else +#include +#endif // APPLE #include - #include // go to debugger mode #define Crash() {asm ("int $3");} #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp index e9b8db207d..dc2c86366f 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp @@ -299,7 +299,7 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) u32 Count = Memory::Read_U32(Buffer.InBuffer[0].m_Address); std::vector TitleIDs; - TitleIDs.push_back(0x0000000100000002); + TitleIDs.push_back(0x0000000100000002ULL); // TitleIDs.push_back(0x0001000248414341); // TitleIDs.push_back(0x0001000146414b45);