diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-28 12:48:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-28 12:48:22 +0000 |
| commit | b3671abbd3489381e257b1043a86551d6de3c292 (patch) | |
| tree | 2a5caad02aedd2a11ad26753abf800b2aaf1ab06 /src | |
| parent | d71cadd49158dde3fbb1eab5ee41943c288b45d0 (diff) | |
Fix OS X build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cross.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 02cdfd444..24abf2c0a 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -56,6 +56,7 @@ using std::ifstream; using std::string; using std::wstring; using std::make_pair; +using std::runtime_error; using boost::shared_ptr; /** @param s Number of seconds to sleep for */ @@ -140,7 +141,7 @@ app_contents () uint32_t size = 1024; char buffer[size]; if (_NSGetExecutablePath (buffer, &size)) { - throw StringError ("_NSGetExecutablePath failed"); + throw runtime_error ("_NSGetExecutablePath failed"); } boost::filesystem::path path (buffer); |
