From: Derek Buitenhuis Date: Mon, 17 Sep 2012 18:09:20 +0000 (-0700) Subject: Fix ALIGNED_ARRAY_EMU macros on ICL X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=2ec8c64580efc10bbfc343d4bec2cf6bbb7d68c7;p=x264.git Fix ALIGNED_ARRAY_EMU macros on ICL ICL's preprocessor doesn't handle it correctly. This fix is similar to libav's fix in 0db2d9. --- diff --git a/common/osdep.h b/common/osdep.h index f7cad575..4d588ec3 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -108,8 +108,10 @@ ALIGNED_16( type name sub1 __VA_ARGS__ ) #endif -#define ALIGNED_ARRAY_32( ... ) ALIGNED_ARRAY_EMU( 31, __VA_ARGS__ ) -#define ALIGNED_ARRAY_64( ... ) ALIGNED_ARRAY_EMU( 63, __VA_ARGS__ ) +#define EXPAND(x) x + +#define ALIGNED_ARRAY_32( ... ) EXPAND( ALIGNED_ARRAY_EMU( 31, __VA_ARGS__ ) ) +#define ALIGNED_ARRAY_64( ... ) EXPAND( ALIGNED_ARRAY_EMU( 63, __VA_ARGS__ ) ) #define UNINIT(x) x=x