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)