summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2014-08-31 18:48:56 +1000
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-31 11:51:46 +0100
commit2c564c04bcde88d730ca111acfb6798bdf0d66da (patch)
treecf7585488a1cbf5f244a978fc98fdde2f44156d1 /src
parente8ad453a0ae9d701b41cc026d5d40f55dd4590c5 (diff)
configure: check for cpuid.h
Instead of checking for a particular version of GCC check for a cpuid.h with __cpuid_count. This allows cpuid.h to be provided for older/different compilers. Signed-off-by: Jonathan Gray <jsg@jsg.id.au> [ickle: Delete the bare and redundant config.h]
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_cpuid.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/sna_cpuid.h b/src/sna/sna_cpuid.h
index ed28a0ae..430cc64f 100644
--- a/src/sna/sna_cpuid.h
+++ b/src/sna/sna_cpuid.h
@@ -30,9 +30,7 @@
#ifndef SNA_CPUID_H
#define SNA_CPUID_H
-#include "compiler.h"
-
-#if HAS_GCC(4, 4) /* for __cpuid_count() */
+#ifdef HAVE_CPUID_H
#include <cpuid.h>
#else
#define __get_cpuid_max(x, y) 0