diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-17 11:12:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-18 09:48:27 +0100 |
| commit | 8aa97c043d73e0c6c8bc484a307b944702c7d3dd (patch) | |
| tree | 15346fdf1bbedbf70ff0932cef7fc70c1c7585b1 /src/lib/cross_osx.cc | |
| parent | e9552854d7a48550d2491665b074adb46ba21b5f (diff) | |
Require boost 1.61.0 or above on Windows/macOS.
Diffstat (limited to 'src/lib/cross_osx.cc')
| -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 } |
