util: fix unused function warning on non-x86
authorBrian Paul <brianp@vmware.com>
Tue, 27 Jul 2010 02:48:29 +0000 (20:48 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 27 Jul 2010 02:48:29 +0000 (20:48 -0600)
src/gallium/auxiliary/util/u_cpu_detect.c

index 23d33af4e413d25d44d474ffe5398bf00f78f8fe..879643463fbb39f527f650b2c67dee54149504d5 100644 (file)
 
 struct util_cpu_caps util_cpu_caps;
 
+#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
 static int has_cpuid(void);
+#endif
+
 
 #if defined(PIPE_ARCH_X86)