From: Adeel Mujahid <3840695+am11@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:14:12 +0000 (+0200) Subject: Fix condition for module registration export (#81765) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2125b8bff88b7754eed4cb6cb61831afaf080759;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix condition for module registration export (#81765) * FIx condition for module registration export * Typo --- diff --git a/src/coreclr/dlls/mscordbi/mscordbi.cpp b/src/coreclr/dlls/mscordbi/mscordbi.cpp index 109fe6a..237cd07 100644 --- a/src/coreclr/dlls/mscordbi/mscordbi.cpp +++ b/src/coreclr/dlls/mscordbi/mscordbi.cpp @@ -33,7 +33,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) return DbgDllMain(hInstance, dwReason, lpReserved); } -#if defined(HOST_LINUX) && defined(TARGET_LINUX) +#if defined(TARGET_LINUX) && !defined(HOST_WINDOWS) PALIMPORT HINSTANCE PALAPI DAC_PAL_RegisterModule(IN LPCSTR lpLibFileName); PALIMPORT VOID PALAPI DAC_PAL_UnregisterModule(IN HINSTANCE hInstance);