Commit 4027ed1d authored by Martin Storsjö's avatar Martin Storsjö Committed by Baptiste Coudurier

fix bug when __GNUC__ isn't defined and when compiling for a non-x86...

fix bug when __GNUC__ isn't defined and when compiling for a non-x86 architecture, patch by Martin Storsjö, martin at martin st

Originally committed as revision 7261 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a4b94019
......@@ -187,12 +187,12 @@ static inline uint##x##_t unaligned##x(const void *v) { \
}
# elif defined(__DECC)
# define unaligned(x) \
static inline uint##x##_t unaligned##x##(const void *v) { \
static inline uint##x##_t unaligned##x(const void *v) { \
return *(const __unaligned uint##x##_t *) v; \
}
# else
# define unaligned(x) \
static inline uint##x##_t unaligned##x##(const void *v) { \
static inline uint##x##_t unaligned##x(const void *v) { \
return *(const uint##x##_t *) v; \
}
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment