[Mplayer-cvslog] CVS: main/libmpeg2 attributes.h,1.2,1.3

Moritz Bunkus CVS mosu at mplayerhq.hu
Wed Jan 15 12:16:35 CET 2003


Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var/tmp.root/cvs-serv14644/libmpeg2

Modified Files:
	attributes.h 
Log Message:
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)

Index: attributes.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/attributes.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- attributes.h	4 Mar 2001 21:01:53 -0000	1.2
+++ attributes.h	15 Jan 2003 11:16:32 -0000	1.3
@@ -21,7 +21,7 @@
 
 /* use gcc attribs to align critical data structures */
 #ifdef ATTRIBUTE_ALIGNED_MAX
-#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
+#define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < (align)) ? ATTRIBUTE_ALIGNED_MAX : (align))))
 #else
 #define ATTR_ALIGN(align)
 #endif



More information about the MPlayer-cvslog mailing list