Browse Source

cpuid: small fix

Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
Ahmed Samy 12 years ago
parent
commit
e9a04de2da
2 changed files with 6 additions and 0 deletions
  1. 5 0
      ccan/cpuid/_info
  2. 1 0
      ccan/cpuid/cpuid.h

+ 5 - 0
ccan/cpuid/_info

@@ -29,7 +29,12 @@ int main(int argc, char *argv[])
 		return 1;
 		return 1;
 
 
 	if (strcmp(argv[1], "depends") == 0) {
 	if (strcmp(argv[1], "depends") == 0) {
+#if defined(__i386__) || defined(__i386) || defined(__x86_64) \
+		|| defined(_M_AMD64) || defined(__M_X64)
 		/* Nothing.  */
 		/* Nothing.  */
+#else
+		printf("ccan/build_assert\n");
+#endif
 		return 0;
 		return 0;
 	}
 	}
 
 

+ 1 - 0
ccan/cpuid/cpuid.h

@@ -235,6 +235,7 @@ bool cpuid_test_feature(cpuid_t feature);
 bool cpuid_has_feature(int feature, bool extended);
 bool cpuid_has_feature(int feature, bool extended);
 
 
 #else
 #else
+#include <ccan/build_assert/build_assert.h>
 
 
 #define cpuid_get_cpu_type() 			BUILD_ASSERT_OR_ZERO(0)
 #define cpuid_get_cpu_type() 			BUILD_ASSERT_OR_ZERO(0)
 #define cpuid_get_cpu_type_string() 		BUILD_ASSERT_OR_ZERO(0)
 #define cpuid_get_cpu_type_string() 		BUILD_ASSERT_OR_ZERO(0)