mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
lavu: avoid clashing definition of E
E is usually defined as a shorthand for AV_OPT_FLAG_ENCODING_PARAM. Rename the single expansion E(x) now used in libavutil to E1.
This commit is contained in:
parent
3658d2dfd4
commit
fd1abf4269
@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
// Some broken preprocessors need a second expansion
|
// Some broken preprocessors need a second expansion
|
||||||
// to be forced to tokenize __VA_ARGS__
|
// to be forced to tokenize __VA_ARGS__
|
||||||
#define E(x) x
|
#define E1(x) x
|
||||||
|
|
||||||
#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \
|
#define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \
|
||||||
uint8_t la_##v[sizeof(t s o) + (a)]; \
|
uint8_t la_##v[sizeof(t s o) + (a)]; \
|
||||||
@ -69,16 +69,16 @@
|
|||||||
DECLARE_ALIGNED(a, t, la_##v) s o; \
|
DECLARE_ALIGNED(a, t, la_##v) s o; \
|
||||||
t (*v) o = la_##v
|
t (*v) o = la_##v
|
||||||
|
|
||||||
#define LOCAL_ALIGNED(a, t, v, ...) E(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,))
|
#define LOCAL_ALIGNED(a, t, v, ...) E1(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,))
|
||||||
|
|
||||||
#if HAVE_LOCAL_ALIGNED_8
|
#if HAVE_LOCAL_ALIGNED_8
|
||||||
# define LOCAL_ALIGNED_8(t, v, ...) E(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,))
|
# define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,))
|
||||||
#else
|
#else
|
||||||
# define LOCAL_ALIGNED_8(t, v, ...) LOCAL_ALIGNED(8, t, v, __VA_ARGS__)
|
# define LOCAL_ALIGNED_8(t, v, ...) LOCAL_ALIGNED(8, t, v, __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LOCAL_ALIGNED_16
|
#if HAVE_LOCAL_ALIGNED_16
|
||||||
# define LOCAL_ALIGNED_16(t, v, ...) E(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,))
|
# define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,))
|
||||||
#else
|
#else
|
||||||
# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
|
# define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user