libFLAC/cpu.c: Add CPP guard
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 21 Dec 2016 05:16:13 +0000 (16:16 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 21 Dec 2016 05:16:13 +0000 (16:16 +1100)
src/libFLAC/cpu.c

index 3e798ef..b9df19a 100644 (file)
@@ -227,8 +227,10 @@ x86_64_cpu_info (FLAC__CPUInfo *info)
 #else
        /* Silence compiler warnings. */
        (void) info;
+#if defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64
        if (0) cpu_xgetbv_x86 ();
 #endif
+#endif
 }
 
 void FLAC__cpu_info (FLAC__CPUInfo *info)