aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Host.cpp')
-rw-r--r--lib/System/Host.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Host.cpp b/lib/System/Host.cpp
index e112698349..2e02609bcb 100644
--- a/lib/System/Host.cpp
+++ b/lib/System/Host.cpp
@@ -107,7 +107,7 @@ static void DetectX86FamilyModel(unsigned EAX, unsigned &Family, unsigned &Model
std::string sys::getHostCPUName() {
-#if defined(__x86_64__) || defined(__i386__)
+#if defined(__x86_64__) || defined(__i386__) || defined(_MSC_VER)
unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX))
return "generic";