avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() arguments
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:21:48 +0000 (00:21 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:21:48 +0000 (00:21 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/attributes.h

index 7d3f4a9..ebcdd6b 100644 (file)
@@ -27,7 +27,7 @@
 #define AVUTIL_ATTRIBUTES_H
 
 #ifdef __GNUC__
-#    define AV_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
+#    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