From 7547f0948f277ed72f81a6bb618dda6d45182867 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sat, 28 Feb 2009 19:37:00 +0000 Subject: [PATCH] linux/osx compile fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2477 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/CommonFuncs.h | 7 ++++++- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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);