Browse Source

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
tags/v0.5
Martin Storsjö Baptiste Coudurier 18 years ago
parent
commit
4027ed1d06
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/bitstream.h

+ 2
- 2
libavcodec/bitstream.h View File

@@ -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


Loading…
Cancel
Save