From 1772dd17ae4089ece4a252ec873deae68e6b39cd Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Wed, 27 Jul 2022 15:20:03 +0200 Subject: [PATCH] Use std::this_thread everywhere The previous logic wouldn't compile on linux using clang. With the meson build requiring c++14, there's no need for platform specific code. Really, the entire agi::util::sleep_for function could be removed entirely, but I'll keep the patch minimal for now. --- libaegisub/unix/util.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libaegisub/unix/util.cpp b/libaegisub/unix/util.cpp index 4cf672119..6eaac61d1 100644 --- a/libaegisub/unix/util.cpp +++ b/libaegisub/unix/util.cpp @@ -15,22 +15,13 @@ #include #include - -#ifdef _LIBCPP_VERSION #include -#else -#include -#endif namespace agi { namespace util { void SetThreadName(const char *) { } void sleep_for(int ms) { -#ifdef __clang__ std::this_thread::sleep_for(std::chrono::milliseconds(ms)); -#else - boost::this_thread::sleep_for(boost::chrono::milliseconds(ms)); -#endif } } }