aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2008-03-19 07:42:50 +0000
committerZuxy Meng <zuxy.meng@gmail.com>2008-03-19 07:42:50 +0000
commit0fd48faca5c8b03817737419880b501f5de55f0b (patch)
tree2c8f5a035ae58dc137a386f87c07918c4b4a2732 /libavutil
parentcca6d953c243dbb05d7cc7a4d26d90c99173bf2c (diff)
downloadffmpeg-0fd48faca5c8b03817737419880b501f5de55f0b.tar.gz
'malloc' attribute isn't supported in old gcc.
Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index d73e225b25..95eb9f502e 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -42,7 +42,7 @@
#define DECLARE_ASM_CONST(n,t,v) static const t v
#endif
-#ifdef __GNUC__
+#if defined(__GNUC__) && (__GNU__ > 3 || __GNU__ == 3 && __GNU_MINOR__ > 0)
#define av_malloc_attrib __attribute__((__malloc__))
#else
#define av_malloc_attrib