mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
Common/FileSystem: More OSX fixes..
This commit is contained in:
parent
2ac8f7a6ac
commit
f805764fea
|
@ -6,8 +6,11 @@
|
|||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
||||
#ifndef __APPLE__
|
||||
#ifdef __APPLE__
|
||||
#include <malloc.h>
|
||||
#else
|
||||
#include <mach-o/dyld.h>
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
|
@ -1409,7 +1412,7 @@ std::string GetProgramPath()
|
|||
return {};
|
||||
}
|
||||
|
||||
std::string ret(buffer, len);
|
||||
std::string ret(buffer);
|
||||
std::free(buffer);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue