Commit e9a04de2 authored by Ahmed Samy's avatar Ahmed Samy

cpuid: small fix

Signed-off-by: default avatarAhmed Samy <f.fallen45@gmail.com>
parent b0851b56
......@@ -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;
}
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment