[FFmpeg-cvslog] attributes: disable flatten on llvm/clang

Vittorio Giovara git at videolan.org
Sun Nov 3 12:48:18 CET 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sun Oct 27 01:45:18 2013 +0200| [5858a67f135a7395c548482c73cf3d39bcdd3022] | committer: Vittorio Giovara

attributes: disable flatten on llvm/clang

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5858a67f135a7395c548482c73cf3d39bcdd3022
---

 libavutil/attributes.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index 9f476c9..d7f2bb5 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -66,7 +66,7 @@
 #    define av_cold
 #endif
 
-#if AV_GCC_VERSION_AT_LEAST(4,1)
+#if AV_GCC_VERSION_AT_LEAST(4,1) && !defined(__llvm__)
 #    define av_flatten __attribute__((flatten))
 #else
 #    define av_flatten



More information about the ffmpeg-cvslog mailing list