diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2019-06-16 06:20:45 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-15 21:20:45 -0700 |
commit | 42ad6989cb2a85a526dd043f2b54d195cb0d0bb4 (patch) | |
tree | d1ac34849b46b11c296dadcce1918c881a64c31f /src/gc | |
parent | 37ff0f54f4259e2e9629c62dfc7602c37ee3a97a (diff) | |
download | coreclr-42ad6989cb2a85a526dd043f2b54d195cb0d0bb4.tar.gz coreclr-42ad6989cb2a85a526dd043f2b54d195cb0d0bb4.tar.bz2 coreclr-42ad6989cb2a85a526dd043f2b54d195cb0d0bb4.zip |
Do not export GC entrypoints outside standalone build (#25184)
It doesn't seem like something we would want to export outside standalone build.
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/gcload.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gc/gcload.cpp b/src/gc/gcload.cpp index 358237a89a..419183392e 100644 --- a/src/gc/gcload.cpp +++ b/src/gc/gcload.cpp @@ -13,6 +13,7 @@ #include "gcenv.h" #include "gc.h" +#ifdef BUILD_AS_STANDALONE #ifndef DLLEXPORT #ifdef _MSC_VER #define DLLEXPORT __declspec(dllexport) @@ -22,6 +23,9 @@ #endif // DLLEXPORT #define GC_EXPORT extern "C" DLLEXPORT +#else +#define GC_EXPORT extern "C" +#endif // These symbols are defined in gc.cpp and populate the GcDacVars // structure with the addresses of DAC variables within the GC. |