Fix Windows legacy LLVM build

The os.hpp header gets added to the include path of legacy llvm via the compiler lib. Having "windows.h" included causes a lot conflicts with LLVM headers, as they forward declare many Windows types. Best to not include it here.

Change-Id: I60c44a8d28660368f1a4a95741e1053ef3528fa1
This commit is contained in:
Vladislav Sytchenko
2020-09-21 11:47:30 -04:00
parent 7fd56c6f13
commit e1b916260a
+2 -3
View File
@@ -33,7 +33,6 @@
#ifdef _WIN32
#include <Basetsd.h> // For KAFFINITY
#include <windows.h>
#endif // _WIN32
// Smallest supported VM page size.
@@ -56,7 +55,7 @@ class Os : AllStatic {
// File Desc abstraction between OS
#if defined(_WIN32)
typedef HANDLE FileDesc;
typedef void* FileDesc;
#else
typedef int FileDesc;
#endif
@@ -104,7 +103,7 @@ class Os : AllStatic {
#if defined(__linux__)
return -1;
#else
return INVALID_HANDLE_VALUE;
return reinterpret_cast<void*>(-1);
#endif
}