Re: [PATCH] Eliminate warnings from MIN/MAX macros
Paul Peteerson <[email protected]> Sun, 1 Jan 2012 19:13:55 -0800 (PST)
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Brad, =A0 In 2010 the package for your codec sized up to some 9000kB?! Please send me= some=A0blueprints/lyneout=A0for dev the codec,=A0and fill me in whit the n= ewsletter. Thx, =A0 Paul, Romania =A0 From: Brad <[email protected]> To: [email protected] = Sent: Thursday, December 29, 2011 7:18 AM Subject: [Xvid-devel] [PATCH] Eliminate warnings from MIN/MAX macros Only include the MIN/MAX macros unconditionally to eliminate warnings for operating systems which already provide MIN/MAX macros. Index: src/global.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- src/global.h=A0=A0=A0 (revision 2056) +++ src/global.h=A0=A0=A0 (working copy) @@ -251,8 +251,12 @@ /* useful macros */ +#ifndef MIN #define MIN(X, Y) ((X)<(Y)?(X):(Y)) +#endif +#ifndef MAX #define MAX(X, Y) ((X)>(Y)?(X):(Y)) +#endif /* #define ABS(X)=A0 =A0 (((X)>0)?(X):-(X)) */ #define SIGN(X)=A0 (((X)>0)?1:-1) #define CLIP(X,AMIN,AMAX)=A0 (((X)<(AMIN)) ? (AMIN) : ((X)>(AMAX)) ? (AMAX)= : (X)) -- = This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Xvid-devel mailing list [email protected] http://list.xvid.org/mailman/listinfo/xvid-devel