[FFmpeg-cvslog] r12500 - trunk/libavutil/mem.h

zuxy subversion
Wed Mar 19 08:42:50 CET 2008


Author: zuxy
Date: Wed Mar 19 08:42:50 2008
New Revision: 12500

Log:
'malloc' attribute isn't supported in old gcc.


Modified:
   trunk/libavutil/mem.h

Modified: trunk/libavutil/mem.h
==============================================================================
--- trunk/libavutil/mem.h	(original)
+++ trunk/libavutil/mem.h	Wed Mar 19 08:42:50 2008
@@ -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




More information about the ffmpeg-cvslog mailing list