From ff8cfd57c76e60dcd64c6b28abc711d36722f503 Mon Sep 17 00:00:00 2001 From: Thomas PRAMPART <thomas.prampart@inria.fr> Date: Mon, 27 Nov 2023 09:19:41 +0000 Subject: [PATCH] Fix osx runnable build --- openvibe/include/openvibe/StringDirectories.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvibe/include/openvibe/StringDirectories.hpp b/openvibe/include/openvibe/StringDirectories.hpp index f696fc595..695aa9c52 100644 --- a/openvibe/include/openvibe/StringDirectories.hpp +++ b/openvibe/include/openvibe/StringDirectories.hpp @@ -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 -- GitLab