[x264-devel] [PATCH 07/14] osdep: Use the EXPAND macro on other cases of ALIGNED_ARRAY_EMU
Martin Storsjö
martin at martin.st
Fri Mar 24 10:33:39 CET 2017
EXPAND is already used on the other cases where ALIGNED_ARRAY_EMU
is used on all platforms (originally needed for ICL, later also
required by MSVC); apply the same change (originally from 21ba91ae)
for the cases that only are used on ARM.
This fixes use of ALIGNED_ARRAY_16 with MSVC when targeting ARM.
---
common/osdep.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/osdep.h b/common/osdep.h
index 9544401..3ff86fc 100644
--- a/common/osdep.h
+++ b/common/osdep.h
@@ -125,13 +125,13 @@ int x264_is_pipe( const char *path );
type (*name) __VA_ARGS__ = (void*)((intptr_t)(name##_u+mask) & ~mask)
#if ARCH_ARM && SYS_MACOSX
-#define ALIGNED_ARRAY_8( ... ) ALIGNED_ARRAY_EMU( 7, __VA_ARGS__ )
+#define ALIGNED_ARRAY_8( ... ) EXPAND( ALIGNED_ARRAY_EMU( 7, __VA_ARGS__ ) )
#else
#define ALIGNED_ARRAY_8( type, name, sub1, ... ) ALIGNED_8( type name sub1 __VA_ARGS__ )
#endif
#if ARCH_ARM
-#define ALIGNED_ARRAY_16( ... ) ALIGNED_ARRAY_EMU( 15, __VA_ARGS__ )
+#define ALIGNED_ARRAY_16( ... ) EXPAND( ALIGNED_ARRAY_EMU( 15, __VA_ARGS__ ) )
#else
#define ALIGNED_ARRAY_16( type, name, sub1, ... ) ALIGNED_16( type name sub1 __VA_ARGS__ )
#endif
--
2.7.4
More information about the x264-devel
mailing list