diff --git a/rocclr/os/os.hpp b/rocclr/os/os.hpp index 1173e0b2ce..82879dee67 100755 --- a/rocclr/os/os.hpp +++ b/rocclr/os/os.hpp @@ -33,7 +33,6 @@ #ifdef _WIN32 #include // For KAFFINITY -#include #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(-1); #endif }