shithub: zelda3

Download patch

ref: 825f449e5860ac0e8b617afa0535d529d968470d
parent: e4febafd54534a2c548371b55424559c0bfd4c7f
author: Snesrev <snesrev@protonmail.com>
date: Wed Oct 26 17:07:09 EDT 2022

Don't assume we can compile sse on non-windows

--- a/third_party/opus-1.3.1-stripped/config.h
+++ b/third_party/opus-1.3.1-stripped/config.h
@@ -40,9 +40,12 @@
 #if (defined(_M_IX86) || defined(_M_X64)) && !COMPILER_TCC
 
 /* Can always compile SSE intrinsics (no special compiler flags necessary) */
+/* (at least on windows)... */
+#if defined(_MSC_VER)
 #define OPUS_X86_MAY_HAVE_SSE
 #define OPUS_X86_MAY_HAVE_SSE2
 #define OPUS_X86_MAY_HAVE_SSE4_1
+#endif
 
 /* Presume SSE functions, if compiled to use SSE/SSE2/AVX (note that AMD64 implies SSE2, and AVX
    implies SSE4.1) */