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
This commit is contained in:
Måns Rullgård 2008-06-05 19:49:47 +00:00
parent 218e453a6f
commit 40c13fecfa
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
#define av_malloc_attrib #define av_malloc_attrib
#endif #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))) #define av_alloc_size(n) __attribute__((alloc_size(n)))
#else #else
#define av_alloc_size(n) #define av_alloc_size(n)