shithub: mp3dec

Download patch

ref: 25e18d08fbcd737923592acbeb3341cb3c140ff4
parent: 17c0850b5451383a1d7a9a27c226d6e30e32fd42
author: David Reid <mackron@gmail.com>
date: Thu Apr 19 15:23:44 EDT 2018

Fix VC++ compilation error for non-x86/64 targets.
Visual C++ supports ARM. x86/x64 needs to be explicitly checked before enabling SSE.

--- a/minimp3.h
+++ b/minimp3.h
@@ -89,7 +89,7 @@
 #define MINIMP3_ONLY_SIMD
 #endif
 
-#if defined(_MSC_VER) || ((defined(__i386__) || defined(__x86_64__)) && defined(__SSE2__))
+#if (defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))) || ((defined(__i386__) || defined(__x86_64__)) && defined(__SSE2__))
 #if defined(_MSC_VER)
 #include <intrin.h>
 #endif