]> git.sesse.net Git - vlc/commitdiff
contribs: vorbis: Fix msvc build
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Tue, 3 Feb 2015 12:51:52 +0000 (13:51 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 27 Feb 2015 14:50:46 +0000 (15:50 +0100)
contrib/src/vorbis/msvc.patch [new file with mode: 0644]
contrib/src/vorbis/rules.mak

diff --git a/contrib/src/vorbis/msvc.patch b/contrib/src/vorbis/msvc.patch
new file mode 100644 (file)
index 0000000..1fa6320
--- /dev/null
@@ -0,0 +1,11 @@
+--- libvorbis/lib/os.h 2014-01-22 10:53:32.000000000 +0100
++++ /home/vlc/vlc/contrib/windowsphone/libvorbis/lib/os.h      2014-12-15 16:54:46.588645600 +0100
+@@ -120,7 +120,7 @@
+
+ /* MSVC inline assembly. 32 bit only; inline ASM isn't implemented in the
+  * 64 bit compiler */
+-#if defined(_MSC_VER) && !defined(_WIN64) && !defined(_WIN32_WCE)
++#if defined(_MSC_VER) && !defined(_WIN64) && !defined(_WIN32_WCE) && !defined(_M_ARM)
+ #  define VORBIS_FPU_CONTROL
+
+ typedef ogg_int16_t vorbis_fpu_control;
index eedfbb1fd869e70f103e0d80dba9089d6957062e..eed4fecec0dfdb4241b2adb7027c8be878e081f7 100644 (file)
@@ -26,6 +26,9 @@ $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
 libvorbis: libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
        $(UNPACK)
        $(APPLY) $(SRC)/vorbis/osx.patch
+ifdef HAVE_VISUALSTUDIO
+       $(APPLY) $(SRC)/vorbis/msvc.patch
+endif
        $(UPDATE_AUTOCONFIG)
        $(MOVE)