[libdvdnav-devel] [Git][videolan/libdvdread][master] 2 commits: ifo_types: Indent to clarify the conditions
Jean-Baptiste Kempf
gitlab at videolan.org
Mon May 24 15:12:30 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread
Commits:
7fc86bd0 by Hugo Beauzée-Luyssen at 2021-05-20T15:26:40+02:00
ifo_types: Indent to clarify the conditions
- - - - -
3ac69796 by Hugo Beauzée-Luyssen at 2021-05-20T15:39:00+02:00
ifo_types.h: Don't use attribute gcc_struct with clang
This issues a warning for each packed struct each time the header gets
included
- - - - -
1 changed file:
- src/dvdread/ifo_types.h
Changes:
=====================================
src/dvdread/ifo_types.h
=====================================
@@ -31,14 +31,14 @@
#undef PRAGMA_PACK_END
#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
+# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
+# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) && !defined(__clang__)
+# define ATTRIBUTE_PACKED __attribute__ ((packed,gcc_struct))
+# else
+# define ATTRIBUTE_PACKED __attribute__ ((packed))
+# endif
+# define PRAGMA_PACK 0
+# endif
#endif
#if !defined(ATTRIBUTE_PACKED)
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/compare/0c281afada0ee5f2f4842eabafb4cb1c5d0e0ced...3ac6979690e7b5446928a5354b3fb579016057dd
--
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/compare/0c281afada0ee5f2f4842eabafb4cb1c5d0e0ced...3ac6979690e7b5446928a5354b3fb579016057dd
You're receiving this email because of your account on code.videolan.org.
More information about the libdvdnav-devel
mailing list