# HG changeset patch # User zuxy # Date 1205912570 0 # Node ID c6cd6e70780ba697a1ddb345d33266955e295d3c # Parent 0b8d0ec536a8657ac8dbb801c209d26624010482 'malloc' attribute isn't supported in old gcc. diff -r 0b8d0ec536a8 -r c6cd6e70780b mem.h --- a/mem.h Wed Mar 19 07:30:34 2008 +0000 +++ b/mem.h Wed Mar 19 07:42:50 2008 +0000 @@ -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