Mercurial > libavutil.hg
diff intreadwrite.h @ 757:7562cfd794da libavutil
Check for __attribute__((packed)) support
Not all compilers claiming to be gcc support this attribute.
| author | mru |
|---|---|
| date | Fri, 17 Jul 2009 08:21:43 +0000 |
| parents | 03f6641ce9e5 |
| children | 22a58fc2125d |
line wrap: on
line diff
--- a/intreadwrite.h Fri Jul 17 04:30:49 2009 +0000 +++ b/intreadwrite.h Fri Jul 17 08:21:43 2009 +0000 @@ -42,7 +42,7 @@ * by per-arch headers. */ -#if defined(__GNUC__) +#if HAVE_ATTRIBUTE_PACKED struct unaligned_64 { uint64_t l; } __attribute__((packed)); struct unaligned_32 { uint32_t l; } __attribute__((packed));
