cpu.c: Fix debug Windows w32 build issue
authorErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 23 Feb 2017 07:58:44 +0000 (18:58 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 23 Feb 2017 07:58:53 +0000 (18:58 +1100)
Was failing to build without NASM.

Patch-from: Olivier Tristan <o.tristan@uvi.net>

src/libFLAC/cpu.c

index 5f86809..4bad89c 100644 (file)
@@ -118,7 +118,9 @@ ia32_cpu_info (FLAC__CPUInfo *info)
                FLAC__cpu_info_x86(1, &flags_eax, &flags_ebx, &flags_ecx, &flags_edx);
        }
        else {
+#if FLAC__HAS_NASM
                FLAC__cpu_info_asm_ia32(&flags_edx, &flags_ecx);
+#endif
        }
 
        info->ia32.cmov  = (flags_edx & FLAC__CPUINFO_IA32_CPUID_CMOV ) ? true : false;