Common/FileSystem: More OSX fixes..

pull/211/head
Connor McLaughlin 5 years ago
parent 2ac8f7a6ac
commit f805764fea

@ -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;
} }

Loading…
Cancel
Save