SWDEV-547108 - Fix compilation errors under Windows (#867)

Interop and numa are not enabled.

[ROCm/clr commit: 0ac913e64c]
This commit is contained in:
Andryeyev, German
2025-08-17 02:33:31 -04:00
zatwierdzone przez GitHub
rodzic 35e48d1eaf
commit 72b9408fed
14 zmienionych plików z 110 dodań i 80 usunięć
+6 -5
Wyświetl plik
@@ -37,16 +37,17 @@
namespace amd {
// ================================================================================================
bool Os::isValidFileDesc(const amd::Os::FileDesc& desc) {
#if defined(_WIN32)
return reinterpret_cast<int>(desc) > 0;
#if IS_WINDOWS
return desc != nullptr;
#else
return static_cast<int>(desc) > 0;
return desc > 0;
#endif
return false;
}
// ================================================================================================
void* Os::loadLibrary(const char* libraryname) {
void* handle;
@@ -57,7 +58,7 @@ void* Os::loadLibrary(const char* libraryname) {
namestart = (namestart != std::string::npos) ? namestart + 1 : 0;
if (namestart == 0) {
#if defined(ATI_OS_WIN)
#if IS_WINDOWS
// Try with the path of the current loaded dll(OCL runtime) first
HMODULE hm = NULL;
if (!GetModuleHandleExA(