gcc_struct has been supported since gcc 3.4.
---
 src/dvdread/ifo_types.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/dvdread/ifo_types.h b/src/dvdread/ifo_types.h
index 10bdab5..33f0346 100644
--- a/src/dvdread/ifo_types.h
+++ b/src/dvdread/ifo_types.h
@@ -32,7 +32,11 @@
 
 #if defined(__GNUC__)
 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
 #define ATTRIBUTE_PACKED __attribute__ ((packed,gcc_struct))
+#else
+#define ATTRIBUTE_PACKED __attribute__ ((packed))
+#endif
 #define PRAGMA_PACK 0
 #endif
 #endif
-- 
1.8.5.2

_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to