attributes: disable flatten on llvm/clang
[ffmpeg.git] / libavutil / attributes.h
index 9f476c9..d7f2bb5 100644 (file)
@@ -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