[Xvid-devel] [PATCH] Eliminate warnings from MIN/MAX macros
Michael Militzer
michael at xvid.org
Fri Dec 30 15:55:32 CET 2011
Hi,
patch applied. Thanks.
Regards,
Michael
Quoting Brad <brad at comstyle.com>:
> Only include the MIN/MAX macros unconditionally to eliminate warnings
> for operating systems which already provide MIN/MAX macros.
>
>
> Index: src/global.h
> ===================================================================
> --- src/global.h (revision 2056)
> +++ src/global.h (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) (((X)>0)?(X):-(X)) */
> #define SIGN(X) (((X)>0)?1:-1)
> #define CLIP(X,AMIN,AMAX) (((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
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>
>
More information about the Xvid-devel
mailing list