changeset 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 1df555475f88
children 22a58fc2125d
files intreadwrite.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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));