Mercurial > mplayer.hg
diff libmpeg2/attributes.h @ 8957:36a5cdca733b
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
author | mosu |
---|---|
date | Wed, 15 Jan 2003 11:16:33 +0000 |
parents | 846535ace7a2 |
children | 47984e3f54ce |
line wrap: on
line diff
--- a/libmpeg2/attributes.h Wed Jan 15 09:50:44 2003 +0000 +++ b/libmpeg2/attributes.h Wed Jan 15 11:16:33 2003 +0000 @@ -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