From 40c13fecfaa12af94d66f6541aa93f6a235c5d57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Thu, 5 Jun 2008 19:49:47 +0000 Subject: [PATCH] alloc_size attribute is new to gcc 4.3; don't use it with lesser versions Originally committed as revision 13665 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/mem.h b/libavutil/mem.h index 5a405bf..84d647d 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -48,7 +48,7 @@ #define av_malloc_attrib #endif -#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 1) +#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2) #define av_alloc_size(n) __attribute__((alloc_size(n))) #else #define av_alloc_size(n) -- 2.7.4