[vlc-commits] include: work around LLVM brain damage

Rémi Denis-Courmont git at videolan.org
Sun Feb 26 21:32:31 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 26 22:31:05 2017 +0200| [18d92bcdbe2233f6f84cada89fa8ed17ae7a7cf5] | committer: Rémi Denis-Courmont

include: work around LLVM brain damage

Pointed-out-by: Filip Roséen

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18d92bcdbe2233f6f84cada89fa8ed17ae7a7cf5
---

 include/vlc_threads.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 1ee346c..779046e 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -825,7 +825,7 @@ VLC_API void msleep(mtime_t delay);
 #define VLC_HARD_MIN_SLEEP   10000 /* 10 milliseconds = 1 tick at 100Hz */
 #define VLC_SOFT_MIN_SLEEP 9000000 /* 9 seconds */
 
-#ifdef __GNUC__
+#if defined (__GNUC__) && !defined (__clang__)
 /* Linux has 100, 250, 300 or 1000Hz
  *
  * HZ=100 by default on FreeBSD, but some architectures use a 1000Hz timer



More information about the vlc-commits mailing list