Browse Source

ST16 is undefined for non-GNU compilers.

Patch by Steve Lhomme <slhomme at divxcorp com>

Originally committed as revision 5206 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Steve L'Homme Måns Rullgård 19 years ago
parent
commit
dc2bf20e27
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/dsputil.h

+ 1
- 0
libavcodec/dsputil.h View File

@@ -543,6 +543,7 @@ struct unaligned_16 { uint16_t l; } __attribute__((packed));
#define LD32(a) (*((uint32_t*)(a))) #define LD32(a) (*((uint32_t*)(a)))
#define LD64(a) (*((uint64_t*)(a))) #define LD64(a) (*((uint64_t*)(a)))


#define ST16(a, b) *((uint16_t*)(a)) = (b)
#define ST32(a, b) *((uint32_t*)(a)) = (b) #define ST32(a, b) *((uint32_t*)(a)) = (b)


#endif /* !__GNUC__ */ #endif /* !__GNUC__ */


Loading…
Cancel
Save