aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-02-22 00:13:23 +0000
committerMåns Rullgård <mans@mansr.com>2009-02-22 00:13:23 +0000
commit03bc0f37441fed3f28b9e46109bbfdc1f35e55bf (patch)
treead29c7d7bdcba17db33fd7aa461492862d40b240 /libavutil/common.h
parentdf442a8d489b6363647f0a6d8d0801cdba9b0241 (diff)
downloadffmpeg-03bc0f37441fed3f28b9e46109bbfdc1f35e55bf.tar.gz
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
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h6
1 files changed, 5 insertions, 1 deletions
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 <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)