Commit 3684f450 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: dvdread fixes for Win32

This should simplify the mms-bitfield issue and avoid the compilation of the dvdread plugin on Windows...
parent e3f2974d
...@@ -1141,7 +1141,7 @@ DISTCLEAN_PKG += libdvdcss-$(LIBDVDCSS_VERSION).tar.gz ...@@ -1141,7 +1141,7 @@ DISTCLEAN_PKG += libdvdcss-$(LIBDVDCSS_VERSION).tar.gz
# *************************************************************************** # ***************************************************************************
libdvdread: libdvdread:
$(SVN) co $(LIBDVDREAD_SVN) libdvdread $(SVN) co $(LIBDVDREAD_SVN) libdvdread
(cd $@; patch -p 0 < ../Patches/libdvdread.patch) (cd $@; patch -p 0 < ../Patches/libdvdread-dvdcss-static.patch)
ifdef HAVE_WIN32 ifdef HAVE_WIN32
(cd $@; patch -p 0 < ../Patches/libdvdread-win32.patch) (cd $@; patch -p 0 < ../Patches/libdvdread-win32.patch)
endif endif
......
...@@ -18,3 +18,16 @@ Index: src/dvd_reader.c ...@@ -18,3 +18,16 @@ Index: src/dvd_reader.c
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DARWIN__) #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DARWIN__)
#define SYS_BSD 1 #define SYS_BSD 1
Index: src/dvdread/ifo_types.h
===================================================================
--- src/dvdread/ifo_types.h (révision 1188)
+++ src/dvdread/ifo_types.h (copie de travail)
@@ -32,7 +32,7 @@
#if defined(__GNUC__)
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-#define ATTRIBUTE_PACKED __attribute__ ((packed))
+#define ATTRIBUTE_PACKED __attribute__ ((packed,gcc_struct))
#define PRAGMA_PACK 0
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment