From 88d9e9cef6d9657c88328dd2e0c741229940a131 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Tue, 2 Feb 2021 16:01:44 +0100
Subject: [PATCH] [build] Make aegisub compile with clang

---
 libaegisub/unix/util.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libaegisub/unix/util.cpp b/libaegisub/unix/util.cpp
index 4cf672119..01343a46d 100644
--- a/libaegisub/unix/util.cpp
+++ b/libaegisub/unix/util.cpp
@@ -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));
-- 
GitLab