[DVDnav-discuss] [PATCH] ifo_types.h: fix 'warning: `gcc_struct' attribute directive ignored'
KO Myung-Hun
komh78 at gmail.com
Thu Jan 29 09:29:03 CET 2015
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
More information about the DVDnav-discuss
mailing list