Mercurial > libavutil.hg
comparison intreadwrite.h @ 854:d6d589d11549 libavutil
Fix build failure with fast_unaligned and non-gcc-compatible compilers
author | mru |
---|---|
date | Tue, 02 Mar 2010 03:16:24 +0000 |
parents | 21624cf4de9e |
children | ac42d0f16eae |
comparison
equal
deleted
inserted
replaced
853:e067fb9b7d68 | 854:d6d589d11549 |
---|---|
192 # define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v)) | 192 # define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v)) |
193 | 193 |
194 #elif HAVE_FAST_UNALIGNED | 194 #elif HAVE_FAST_UNALIGNED |
195 | 195 |
196 # define AV_RN(s, p) (((const av_alias##s*)(p))->u##s) | 196 # define AV_RN(s, p) (((const av_alias##s*)(p))->u##s) |
197 # define AV_WN(s, p, v) (((uint##s##_t*)(p))->u##s = (v)) | 197 # define AV_WN(s, p, v) (((av_alias##s*)(p))->u##s = (v)) |
198 | 198 |
199 #else | 199 #else |
200 | 200 |
201 #ifndef AV_RB16 | 201 #ifndef AV_RB16 |
202 # define AV_RB16(x) \ | 202 # define AV_RB16(x) \ |