[FFmpeg-cvslog] r17508 - trunk/libavutil/common.h

mru subversion
Sun Feb 22 01:13:23 CET 2009


Author: mru
Date: Sun Feb 22 01:13:23 2009
New Revision: 17508

Log:
Avoid warnings from AV_GCC_VERSION_AT_LEAST with some non-gcc compilers

Modified:
   trunk/libavutil/common.h

Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	Sun Feb 22 01:13:19 2009	(r17507)
+++ trunk/libavutil/common.h	Sun Feb 22 01:13:23 2009	(r17508)
@@ -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)




More information about the ffmpeg-cvslog mailing list