[flac-dev] 1.3.2: FLAC__CPUINFO_IA32_CPUID_SSE3 undeclared

Christian Weisgerber naddy at mips.inka.de
Thu Jan 12 21:10:32 UTC 2017


FWIW, here's a minimal fix to deal with this.

--- src/libFLAC/cpu.c.orig	Wed Dec 21 21:41:21 2016
+++ src/libFLAC/cpu.c	Thu Jan 12 21:24:21 2017
@@ -65,7 +65,7 @@ static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE = 0
 static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE2 = 0x04000000;
 #endif
 
-#if FLAC__HAS_X86INTRIN || FLAC__AVX_SUPPORTED
+#if FLAC__HAS_X86INTRIN || FLAC__AVX_SUPPORTED || defined FLAC__HAS_NASM
 /* these are flags in ECX of CPUID AX=00000001 */
 static const unsigned FLAC__CPUINFO_IA32_CPUID_SSE3 = 0x00000001;
 static const unsigned FLAC__CPUINFO_IA32_CPUID_SSSE3 = 0x00000200;

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the flac-dev mailing list