Fix 01b02a73de78 to use correct macro spelling and fix unit tests.
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 371271e..cafdc2f 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1326,7 +1326,7 @@
   }
   return count;
 }
-#elif defined(_WIN32) && LLVM_THREADS_ENABLED
+#elif defined(_WIN32) && LLVM_ENABLE_THREADS != 0
 // Defined in llvm/lib/Support/Windows/Threading.inc
 int computeHostNumPhysicalCores();
 #else