Require boost 1.61.0 or above on Windows/macOS.
[dcpomatic.git] / src / lib / cross_osx.cc
index 6c00afb973bf442b60073f3d94a20e278837ecdf..fc8ccd4a872dbe2566324d877d053e5beaa80637 100644 (file)
@@ -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
 }