[PATCH] ifo_types.h: fix 'warning: `gcc_struct' attribute directive ignored'
29 Jan
2015
29 Jan
'15
8:29 a.m.
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
4306
Age (days ago)
4306
Last active (days ago)
0 comments
1 participants
participants (1)
-
KO Myung-Hun