From 0fd48faca5c8b03817737419880b501f5de55f0b Mon Sep 17 00:00:00 2001 From: Zuxy Meng Date: Wed, 19 Mar 2008 07:42:50 +0000 Subject: 'malloc' attribute isn't supported in old gcc. Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/mem.h') 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 -- cgit v1.2.3