Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Abstract DLLEXPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
franksinankaya committed Feb 25, 2019
1 parent a878c71 commit 267db3d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/src/Interop/IJW/FakeMscoree/mscoree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@

#include <windows.h>

#ifndef DLLEXPORT
#ifdef _MSC_VER
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __attribute__((visibility("default")))
#endif
#endif

// Entrypoint jumped to by IJW dlls when their dllmain is called
extern "C" __declspec(dllexport) BOOL WINAPI _CorDllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
extern "C" DLLEXPORT BOOL WINAPI _CorDllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
{
return TRUE;
}

0 comments on commit 267db3d

Please sign in to comment.