summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp17
-rw-r--r--src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp17
-rw-r--r--src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp17
3 files changed, 21 insertions, 30 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp b/src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp
index 9c2cdc3f4c..4068dac931 100644
--- a/src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp
+++ b/src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp
@@ -86,10 +86,10 @@ void SetLogFilePath()
}
}
-extern "C" BOOL
-#ifndef FEATURE_PAL
- APIENTRY
-#endif // !FEATURE_PAL
+#ifdef FEATURE_PAL
+DLLEXPORT // For Win32 PAL LoadLibrary emulation
+#endif
+ extern "C" BOOL
DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
@@ -123,8 +123,7 @@ extern "C" BOOL
return TRUE;
}
-// Exported via def file
-extern "C" void __stdcall jitStartup(ICorJitHost* host)
+extern "C" DLLEXPORT void __stdcall jitStartup(ICorJitHost* host)
{
SetDefaultPaths();
SetLibName();
@@ -147,8 +146,7 @@ extern "C" void __stdcall jitStartup(ICorJitHost* host)
pnjitStartup(g_ourJitHost);
}
-// Exported via def file
-extern "C" ICorJitCompiler* __stdcall getJit()
+extern "C" DLLEXPORT ICorJitCompiler* __stdcall getJit()
{
DWORD dwRetVal = 0;
PgetJit pngetJit;
@@ -194,8 +192,7 @@ extern "C" ICorJitCompiler* __stdcall getJit()
return pJitInstance;
}
-// Exported via def file
-extern "C" void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
+extern "C" DLLEXPORT void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
{
PsxsJitStartup pnsxsJitStartup;
diff --git a/src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp b/src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp
index 51d76b4df5..57a4ad67ba 100644
--- a/src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp
+++ b/src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp
@@ -68,10 +68,10 @@ void SetLogFilePath()
}
}
-extern "C" BOOL
-#ifndef FEATURE_PAL
- APIENTRY
-#endif // !FEATURE_PAL
+#ifdef FEATURE_PAL
+DLLEXPORT // For Win32 PAL LoadLibrary emulation
+#endif
+ extern "C" BOOL
DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
@@ -110,8 +110,7 @@ extern "C" BOOL
return TRUE;
}
-// Exported via def file
-extern "C" void __stdcall jitStartup(ICorJitHost* host)
+extern "C" DLLEXPORT void __stdcall jitStartup(ICorJitHost* host)
{
SetDefaultPaths();
SetLibName();
@@ -143,8 +142,7 @@ extern "C" void __stdcall jitStartup(ICorJitHost* host)
pnjitStartup(g_ourJitHost);
}
-// Exported via def file
-extern "C" ICorJitCompiler* __stdcall getJit()
+extern "C" DLLEXPORT ICorJitCompiler* __stdcall getJit()
{
DWORD dwRetVal = 0;
PgetJit pngetJit;
@@ -186,8 +184,7 @@ extern "C" ICorJitCompiler* __stdcall getJit()
return pJitInstance;
}
-// Exported via def file
-extern "C" void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
+extern "C" DLLEXPORT void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
{
PsxsJitStartup pnsxsJitStartup;
diff --git a/src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp b/src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp
index 1f446cadb4..01341ccada 100644
--- a/src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp
+++ b/src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp
@@ -58,10 +58,10 @@ void SetLogFilePath()
}
}
-extern "C" BOOL
-#ifndef FEATURE_PAL
- APIENTRY
-#endif // !FEATURE_PAL
+#ifdef FEATURE_PAL
+DLLEXPORT // For Win32 PAL LoadLibrary emulation
+#endif
+ extern "C" BOOL
DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
@@ -95,8 +95,7 @@ extern "C" BOOL
return TRUE;
}
-// Exported via def file
-extern "C" void __stdcall jitStartup(ICorJitHost* host)
+extern "C" DLLEXPORT void __stdcall jitStartup(ICorJitHost* host)
{
SetDefaultPaths();
SetLibName();
@@ -119,8 +118,7 @@ extern "C" void __stdcall jitStartup(ICorJitHost* host)
pnjitStartup(g_ourJitHost);
}
-// Exported via def file
-extern "C" ICorJitCompiler* __stdcall getJit()
+extern "C" DLLEXPORT ICorJitCompiler* __stdcall getJit()
{
DWORD dwRetVal = 0;
PgetJit pngetJit;
@@ -155,8 +153,7 @@ extern "C" ICorJitCompiler* __stdcall getJit()
return pJitInstance;
}
-// Exported via def file
-extern "C" void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
+extern "C" DLLEXPORT void __stdcall sxsJitStartup(CoreClrCallbacks const& original_cccallbacks)
{
PsxsJitStartup pnsxsJitStartup;