OSDN Git Service

gcc3 bug workaround
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Jul 2002 17:41:51 +0000 (17:41 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Jul 2002 17:41:51 +0000 (17:41 +0000)
Originally committed as revision 727 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/common.h

index 8ad8a8e..3af4755 100644 (file)
@@ -165,7 +165,7 @@ inline void dprintf(const char* fmt,...) {}
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define MIN(a,b) ((a) > (b) ? (b) : (a))
 
-#ifdef ARCH_X86
+#if defined ARCH_X86 && (__GNUC__ != 3 || __GNUC_MINOR__ > 1)
 // inverse for shift optimization (gcc should do that ...)
 #define INV32(a) (-a)
 #else