[Mplayer-cvslog] CVS: main/libmpdemux asf.h,1.17,1.18
Moritz Bunkus CVS
mosu at mplayerhq.hu
Wed Jan 15 12:16:34 CET 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv14644/libmpdemux
Modified Files:
asf.h
Log Message:
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
Index: asf.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- asf.h 9 Jul 2002 08:23:47 -0000 1.17
+++ asf.h 15 Jan 2003 11:16:31 -0000 1.18
@@ -6,7 +6,7 @@
#include "bswap.h"
#ifndef MIN
-#define MIN(a,b) ((a<b)?a:b)
+#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
///////////////////////
More information about the MPlayer-cvslog
mailing list