[vlc-devel] commit: Fix flac building on win32 ( Rafaël Carré )

git version control git at videolan.org
Tue May 27 02:00:17 CEST 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Tue May 27 02:01:43 2008 +0200| [fe5096c2a8299ae72294d7b23480c7e886cbf1c1]

Fix flac building on win32

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe5096c2a8299ae72294d7b23480c7e886cbf1c1
---

 extras/contrib/src/Makefile                   |    1 +
 extras/contrib/src/Patches/flac-mingw32.patch |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 0fe971e..55ac975 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -768,6 +768,7 @@ flac-$(FLAC_VERSION).tar.gz:
 
 flac: flac-$(FLAC_VERSION).tar.gz
 	$(EXTRACT_GZ)
+	(cd $@; patch -p 0 < ../Patches/flac-mingw32.patch)
 ifdef HAVE_DARWIN_OS
 	(patch -p 0 < Patches/flac-mactel.patch)
 endif
diff --git a/extras/contrib/src/Patches/flac-mingw32.patch b/extras/contrib/src/Patches/flac-mingw32.patch
new file mode 100644
index 0000000..8a7d358
--- /dev/null
+++ b/extras/contrib/src/Patches/flac-mingw32.patch
@@ -0,0 +1,11 @@
+--- include/share/alloc.h.orig	2008-05-27 01:56:44.000000000 +0200
++++ include/share/alloc.h	2008-05-27 01:57:04.000000000 +0200
+@@ -35,7 +35,7 @@
+ 
+ #ifndef SIZE_MAX
+ # ifndef SIZE_T_MAX
+-#  ifdef _MSC_VER
++#  if defined _MSC_VER || defined __MINGW32__
+ #   define SIZE_T_MAX UINT_MAX
+ #  else
+ #   error




More information about the vlc-devel mailing list