Mercurial > libavutil.hg
changeset 668:8adb1d368c25 libavutil
Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers
author | mru |
---|---|
date | Sun, 22 Feb 2009 00:13:23 +0000 |
parents | 998344532d61 |
children | d832fcef8bb8 |
files | common.h |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Sat Feb 21 20:38:27 2009 +0000 +++ b/common.h Sun Feb 22 00:13:23 2009 +0000 @@ -35,7 +35,11 @@ #include <stdlib.h> #include <string.h> -#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)