From eae85ee7665d4d8604617d7bfb6529d112e7db91 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 20 Mar 2016 17:49:39 +1100 Subject: [PATCH] libFLAC/stream_decoder.c: Fix compiling with integer only Was failing to compile on IA32 with FLAC__INTEGER_ONLY_LIBRARY defined. Reported-by: "Joakim Landberg" --- src/libFLAC/stream_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index da9fc492..bd9f9a6e 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -405,7 +405,7 @@ static FLAC__StreamDecoderInitStatus init_stream_internal_( decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_asm_ia32; } #endif -#ifdef FLAC__HAS_X86INTRIN +#if defined FLAC__HAS_X86INTRIN && ! defined FLAC__INTEGER_ONLY_LIBRARY # if defined FLAC__SSE2_SUPPORTED && !defined FLAC__HAS_NASM /* OPT_SSE: not better than MMX asm */ if(decoder->private_->cpuinfo.ia32.sse2) { decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_16_intrin_sse2;