[SCM] libav/experimental: 'malloc' attribute isn't supported in old gcc.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:17:17 UTC 2013
The following commit has been merged in the experimental branch:
commit 0fd48faca5c8b03817737419880b501f5de55f0b
Author: Zuxy Meng <zuxy.meng at gmail.com>
Date: Wed Mar 19 07:42:50 2008 +0000
'malloc' attribute isn't supported in old gcc.
Originally committed as revision 12500 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavutil/mem.h b/libavutil/mem.h
index d73e225..95eb9f5 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
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list