changeset 483:c6cd6e70780b libavutil

'malloc' attribute isn't supported in old gcc.
author zuxy
date Wed, 19 Mar 2008 07:42:50 +0000
parents 0b8d0ec536a8
children 454969cf56c1
files mem.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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