提交 c57b205c 编写于 作者: M Michal Privoznik

virSysinfoRead: Simplify #ifdef underbush

Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 44b8df4c
...@@ -1212,13 +1212,12 @@ virSysinfoRead(void) ...@@ -1212,13 +1212,12 @@ virSysinfoRead(void)
return virSysinfoReadARM(); return virSysinfoReadARM();
#elif defined(__s390__) || defined(__s390x__) #elif defined(__s390__) || defined(__s390x__)
return virSysinfoReadS390(); return virSysinfoReadS390();
#elif defined(WIN32) || \ #elif !defined(WIN32) && \
!(defined(__x86_64__) || \ (defined(__x86_64__) || \
defined(__i386__) || \ defined(__i386__) || \
defined(__amd64__) || \ defined(__amd64__))
defined(__arm__) || \ return virSysinfoReadX86();
defined(__aarch64__) || \ #else /* WIN32 || not supported arch */
defined(__powerpc__))
/* /*
* this can probably be extracted from Windows using API or registry * this can probably be extracted from Windows using API or registry
* http://www.microsoft.com/whdc/system/platform/firmware/SMBIOS.mspx * http://www.microsoft.com/whdc/system/platform/firmware/SMBIOS.mspx
...@@ -1226,9 +1225,7 @@ virSysinfoRead(void) ...@@ -1226,9 +1225,7 @@ virSysinfoRead(void)
virReportSystemError(ENOSYS, "%s", virReportSystemError(ENOSYS, "%s",
_("Host sysinfo extraction not supported on this platform")); _("Host sysinfo extraction not supported on this platform"));
return NULL; return NULL;
#else /* !WIN32 && x86 */ #endif /* WIN32 || not supported arch */
return virSysinfoReadX86();
#endif /* !WIN32 && x86 */
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册