[Xvid-devel] [PATCH] Eliminate warnings from MIN/MAX macros

Paul Peteerson fordt_nus at yahoo.com
Mon Jan 2 04:13:55 CET 2012


Hi Brad,
 
In 2010 the package for your codec sized up to some 9000kB?! Please send me some blueprints/lyneout for dev the codec, and fill me in whit the newsletter.
Thx,
 
Paul,
Romania
 

From: Brad <brad at comstyle.com>
To: xvid-devel at xvid.org 
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
===================================================================
--- 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