Fix condition for module registration export (#81765)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Tue, 7 Feb 2023 23:14:12 +0000 (01:14 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 23:14:12 +0000 (15:14 -0800)
* FIx condition for module registration export

* Typo

src/coreclr/dlls/mscordbi/mscordbi.cpp

index 109fe6a..237cd07 100644 (file)
@@ -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);