contribs: compilation fix fo libmodplug when compiling with GCC-LLVM-4.2
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 26 Dec 2008 23:30:56 +0000 (00:30 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 26 Dec 2008 23:30:56 +0000 (00:30 +0100)
extras/contrib/src/Makefile
extras/contrib/src/Patches/libmodplug-gccllvm42.patch [new file with mode: 0644]

index bf1fe95..eab3661 100644 (file)
@@ -1435,6 +1435,7 @@ libmodplug-$(MODPLUG_VERSION).tar.gz:
 
 libmodplug: libmodplug-$(MODPLUG_VERSION).tar.gz
        $(EXTRACT_GZ)
+       patch -p0 < Patches/libmodplug-gccllvm42.patch
 ifdef HAVE_WIN32
        patch -p0 < Patches/libmodplug-win32.patch
        (cd $@; autoreconf)
diff --git a/extras/contrib/src/Patches/libmodplug-gccllvm42.patch b/extras/contrib/src/Patches/libmodplug-gccllvm42.patch
new file mode 100644 (file)
index 0000000..8a686be
--- /dev/null
@@ -0,0 +1,42 @@
+diff -ru libmodplug-orig/src/load_abc.cpp libmodplug/src/load_abc.cpp
+--- libmodplug-orig/src/load_abc.cpp   2006-11-02 03:18:26.000000000 +0100
++++ libmodplug/src/load_abc.cpp        2008-12-27 00:20:46.000000000 +0100
+@@ -43,6 +43,10 @@
+ #include "load_pat.h"
++#ifndef uint
++#typedef uint unsigned int
++#endif
++
+ #define MAXABCINCLUDES        8
+ #define MAXCHORDNAMES 80
+ #define ABC_ENV_DUMPTRACKS            "MMABC_DUMPTRACKS"
+diff -ru libmodplug-orig/src/load_mid.cpp libmodplug/src/load_mid.cpp
+--- libmodplug-orig/src/load_mid.cpp   2006-11-02 02:50:47.000000000 +0100
++++ libmodplug/src/load_mid.cpp        2008-12-27 00:15:30.000000000 +0100
+@@ -52,6 +52,10 @@
+ #include "load_pat.h"
++#ifndef uint
++#typedef uint unsigned int
++#endif
++
+ #define ROWSPERNOTE 16
+ #define ENV_MMMID_SPEED       "MMMID_SPEED"
+ #define ENV_MMMID_DEBUG "MMMID_DEBUG"
+diff -ru libmodplug-orig/src/load_pat.cpp libmodplug/src/load_pat.cpp
+--- libmodplug-orig/src/load_pat.cpp   2006-09-12 01:57:25.000000000 +0200
++++ libmodplug/src/load_pat.cpp        2008-12-27 00:20:43.000000000 +0100
+@@ -47,6 +47,10 @@
+ #include "load_pat.h"
++#ifndef uint
++#typedef uint unsigned int
++#endif
++
+ #ifdef MSC_VER
+ #define DIRDELIM              '\\'
+ #define TIMIDITYCFG   "C:\\TIMIDITY\\TIMIDITY.CFG"