Common/FileSystem: More OSX fixes..

This commit is contained in:
Connor McLaughlin 2020-02-15 10:50:33 +09:00
parent 2ac8f7a6ac
commit f805764fea
1 changed files with 5 additions and 2 deletions

View File

@ -6,8 +6,11 @@
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#ifndef __APPLE__ #ifdef __APPLE__
#include <malloc.h> #include <malloc.h>
#else
#include <mach-o/dyld.h>
#include <sys/param.h>
#endif #endif
#if defined(WIN32) #if defined(WIN32)
@ -1409,7 +1412,7 @@ std::string GetProgramPath()
return {}; return {};
} }
std::string ret(buffer, len); std::string ret(buffer);
std::free(buffer); std::free(buffer);
return ret; return ret;
} }