Do not export GC entrypoints outside standalone build (#25184)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sun, 16 Jun 2019 04:20:45 +0000 (06:20 +0200)
committerJan Kotas <jkotas@microsoft.com>
Sun, 16 Jun 2019 04:20:45 +0000 (21:20 -0700)
It doesn't seem like something we would want to export outside standalone build.

src/gc/gcload.cpp

index 358237a..4191833 100644 (file)
@@ -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.