X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcross_osx.cc;h=fc8ccd4a872dbe2566324d877d053e5beaa80637;hp=6c00afb973bf442b60073f3d94a20e278837ecdf;hb=8aa97c043d73e0c6c8bc484a307b944702c7d3dd;hpb=e9552854d7a48550d2491665b074adb46ba21b5f 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 }