diff options
author | Daniel Teske <daniel.teske@digia.com> | 2013-01-15 13:58:06 +0100 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2013-01-16 16:22:14 +0100 |
commit | 72e3605a01394fe2f67ea159f757a4d5a1c3ab90 (patch) | |
tree | c7d1c91eeeb662b61d60e2eea2aadacf52463504 /src/libs/utils/hostosinfo.h | |
parent | c212e081a5b93c0722716516b4129a249ae81cc3 (diff) |
Add architecture information to Utils::HostOsInfo
Change-Id: I2e8ec214ba4ea4567e1eeb5d2f3bd1a59000bc48
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/libs/utils/hostosinfo.h')
-rw-r--r-- | src/libs/utils/hostosinfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/utils/hostosinfo.h b/src/libs/utils/hostosinfo.h index e44be536179..027a57de343 100644 --- a/src/libs/utils/hostosinfo.h +++ b/src/libs/utils/hostosinfo.h @@ -47,9 +47,14 @@ class QTCREATOR_UTILS_EXPORT HostOsInfo public: // Add more as needed. enum HostOs { HostOsWindows, HostOsLinux, HostOsMac, HostOsOtherUnix, HostOsOther }; - static inline HostOs hostOs(); +#ifdef Q_OS_WIN + enum HostArchitecture { HostArchitectureX86, HostArchitectureAMD64, HostArchitectureItanium, + HostArchitectureArm, HostArchitectureOther }; + static HostArchitecture hostArchitecture(); +#endif + static bool isWindowsHost() { return hostOs() == HostOsWindows; } static bool isLinuxHost() { return hostOs() == HostOsLinux; } static bool isMacHost() { return hostOs() == HostOsMac; } |