[build] Make aegisub compile with clang

This commit is contained in:
Kubat 2021-02-02 16:01:44 +01:00
parent 95914161ee
commit 88d9e9cef6
No known key found for this signature in database
GPG Key ID: 22432F7DB6FDCA05
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ namespace agi { namespace util {
void SetThreadName(const char *) { }
void sleep_for(int ms) {
#ifdef __clang__
#ifdef _LIBCPP_VERSION
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
#else
boost::this_thread::sleep_for(boost::chrono::milliseconds(ms));