diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/cross_osx.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index 6c00afb97..fc8ccd4a8 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -99,19 +99,7 @@ cpu_info () boost::filesystem::path directory_containing_executable () { -#if BOOST_VERSION >= 106100 return boost::dll::program_location().parent_path(); -#else - uint32_t size = 1024; - char buffer[size]; - if (_NSGetExecutablePath (buffer, &size)) { - throw runtime_error ("_NSGetExecutablePath failed"); - } - - boost::filesystem::path path (buffer); - path = boost::filesystem::canonical (path); - return path.parent_path (); -#endif } |
