[PATCH] Fix WindowsRT build

Hugo Beauzée-Luyssen <[email protected]> Fri, 27 Feb 2015 16:41:08 +0100
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <1425051668.1666810.233289549.02FFAD23@webmail.messagingengine.com>
Hi,

The attached patch fixes build on Windows/ARM platform, as it doesn't
have inline assembly.

Regards,

-- 
  Hugo Beauzée-Luyssen
  [email protected]

_______________________________________________
Vorbis-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis-dev
fix_msvc_build.patch (text/x-patch, 489 B)
Index: lib/os.h
===================================================================
--- lib/os.h	(revision 19448)
+++ lib/os.h	(working copy)
@@ -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;