Fixed compilation on OSX
This commit is contained in:
parent
546fbe1e8e
commit
c227e15794
2 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ void RemovableDriveManager::eject_drive()
|
||||||
std::string correct_path(m_last_save_path);
|
std::string correct_path(m_last_save_path);
|
||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
// On Apple, run the eject asynchronously on a worker thread, see the discussion at GH issue #4844.
|
// On Apple, run the eject asynchronously on a worker thread, see the discussion at GH issue #4844.
|
||||||
m_eject_thread = new std::thread([this, correct_path, drive_data]()
|
m_eject_thread = new boost::thread([this, correct_path, drive_data]()
|
||||||
#else
|
#else
|
||||||
// Escape spaces on Unix systems. Why not on Apple?
|
// Escape spaces on Unix systems. Why not on Apple?
|
||||||
boost::replace_all(correct_path, " ", "\\ ");
|
boost::replace_all(correct_path, " ", "\\ ");
|
||||||
|
|
|
@ -132,7 +132,7 @@ private:
|
||||||
void eject_device(const std::string &path);
|
void eject_device(const std::string &path);
|
||||||
// Opaque pointer to RemovableDriveManagerMM
|
// Opaque pointer to RemovableDriveManagerMM
|
||||||
void *m_impl_osx;
|
void *m_impl_osx;
|
||||||
std::thread *m_eject_thread { nullptr };
|
boost::thread *m_eject_thread { nullptr };
|
||||||
void eject_thread_finish();
|
void eject_thread_finish();
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue