attributes: disable flatten on llvm/clang
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 26 Oct 2013 23:45:18 +0000 (01:45 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 3 Nov 2013 10:51:40 +0000 (11:51 +0100)
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