libFLAC/stream_decoder.c: Fix compiling with integer only
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 20 Mar 2016 06:49:39 +0000 (17:49 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 20 Mar 2016 06:49:44 +0000 (17:49 +1100)
Was failing to compile on IA32 with FLAC__INTEGER_ONLY_LIBRARY
defined.

Reported-by: "Joakim Landberg" <joakim.landberg@intel.com>
src/libFLAC/stream_decoder.c

index da9fc49..bd9f9a6 100644 (file)
@@ -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;