diff options
Diffstat (limited to 'src/coreclr/vm/appdomain.cpp')
-rw-r--r-- | src/coreclr/vm/appdomain.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/coreclr/vm/appdomain.cpp b/src/coreclr/vm/appdomain.cpp index 8fa02c4f121..8192392cd08 100644 --- a/src/coreclr/vm/appdomain.cpp +++ b/src/coreclr/vm/appdomain.cpp @@ -47,10 +47,13 @@ #include "runtimecallablewrapper.h" #include "mngstdinterfaces.h" #include "olevariant.h" -#include "rcwrefcache.h" #include "olecontexthelpers.h" #endif // FEATURE_COMINTEROP +#if defined(FEATURE_COMWRAPPERS) +#include "rcwrefcache.h" +#endif // FEATURE_COMWRAPPERS + #include "typeequivalencehash.hpp" #include "appdomain.inl" @@ -2113,8 +2116,10 @@ AppDomain::AppDomain() m_dwFlags = 0; #ifdef FEATURE_COMINTEROP m_pRCWCache = NULL; +#endif //FEATURE_COMINTEROP +#ifdef FEATURE_COMWRAPPERS m_pRCWRefCache = NULL; -#endif // FEATURE_COMINTEROP +#endif // FEATURE_COMWRAPPERS m_handleStore = NULL; @@ -4418,7 +4423,7 @@ void AppDomain::NotifyDebuggerUnload() #ifndef CROSSGEN_COMPILE -#ifdef FEATURE_COMINTEROP +#ifdef FEATURE_COMWRAPPERS RCWRefCache *AppDomain::GetRCWRefCache() { @@ -4440,6 +4445,9 @@ RCWRefCache *AppDomain::GetRCWRefCache() } RETURN m_pRCWRefCache; } +#endif // FEATURE_COMWRAPPERS + +#ifdef FEATURE_COMINTEROP RCWCache *AppDomain::CreateRCWCache() { |