Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ff8cfd57 authored by Thomas PRAMPART's avatar Thomas PRAMPART
Browse files

Fix osx runnable build

parent 5701d934
No related branches found
No related tags found
3 merge requests!289Release 3.6.0,!284Add package management,!270Fix osx runnable build
......@@ -95,11 +95,11 @@ private:
readlink("/proc/self/exe", path, sizeof(path));
fullpath = std::string(path);
#elif defined TARGET_OS_MacOS
size_t size = 0;
// _NSGetExecutablePath(nullptr, &size);
uint32_t size = 0;
_NSGetExecutablePath(nullptr, &size);
std::unique_ptr<char> path(new char[size + 1]);
// if (_NSGetExecutablePath(path.get(), &size) != 0) { std::abort(); }
if (_NSGetExecutablePath(path.get(), &size) != 0) { std::abort(); }
fullpath = std::string(path.get());
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment