From 23486f48a5034b3a25be6ced6cdba9a86131e1f0 Mon Sep 17 00:00:00 2001 From: mosu Date: Wed, 15 Jan 2003 11:16:33 +0000 Subject: bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8958 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpeg2') diff --git a/libmpeg2/attributes.h b/libmpeg2/attributes.h index 3e14cab271..ab7105c2df 100644 --- a/libmpeg2/attributes.h +++ b/libmpeg2/attributes.h @@ -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 -- cgit v1.2.3