cpuid: small fix
authorAhmed Samy <f.fallen45@gmail.com>
Wed, 25 Sep 2013 16:44:20 +0000 (16:44 +0000)
committerAhmed Samy <f.fallen45@gmail.com>
Wed, 25 Sep 2013 16:44:20 +0000 (16:44 +0000)
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
ccan/cpuid/_info
ccan/cpuid/cpuid.h

index b6e0caf7b1dd402b7bde0aea44fbf468b8d1cc30..1603b4bec40ad9076d4ee6fe0ce52499e6c48609 100644 (file)
@@ -29,7 +29,12 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+#if defined(__i386__) || defined(__i386) || defined(__x86_64) \
+               || defined(_M_AMD64) || defined(__M_X64)
                /* Nothing.  */
+#else
+               printf("ccan/build_assert\n");
+#endif
                return 0;
        }
 
index b0d9df19278c741da039037b9017b9ccde6ac577..8988949e553ccf47f67f059531450752fe1be923 100644 (file)
@@ -235,6 +235,7 @@ bool cpuid_test_feature(cpuid_t feature);
 bool cpuid_has_feature(int feature, bool extended);
 
 #else
+#include <ccan/build_assert/build_assert.h>
 
 #define cpuid_get_cpu_type()                   BUILD_ASSERT_OR_ZERO(0)
 #define cpuid_get_cpu_type_string()            BUILD_ASSERT_OR_ZERO(0)