From 03bc0f37441fed3f28b9e46109bbfdc1f35e55bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 22 Feb 2009 00:13:23 +0000 Subject: [PATCH] Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers Originally committed as revision 17508 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavutil/common.h b/libavutil/common.h index d8f2f6414f..15eaf9849d 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -35,7 +35,11 @@ #include #include -#define AV_GCC_VERSION_AT_LEAST(x,y) (defined(__GNUC__) && (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)) +#ifdef __GNUC__ +# define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y) +#else +# define AV_GCC_VERSION_AT_LEAST(x,y) 0 +#endif #ifndef av_always_inline #if AV_GCC_VERSION_AT_LEAST(3,1)