summaryrefslogtreecommitdiff
path: root/src/lib/cross_osx.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-17 11:12:14 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-18 09:48:27 +0100
commit8aa97c043d73e0c6c8bc484a307b944702c7d3dd (patch)
tree15346fdf1bbedbf70ff0932cef7fc70c1c7585b1 /src/lib/cross_osx.cc
parente9552854d7a48550d2491665b074adb46ba21b5f (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.cc12
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
}