summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_core.h8
-rw-r--r--include/newpluginapi.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/include/m_core.h b/include/m_core.h
index 182b3f1ff3..086b78cbb7 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -582,4 +582,12 @@ inline int mir_vsnwprintf(_Pre_notnull_ _Always_(_Post_z_) wchar_t(&buffer)[_Siz
#endif
+#ifndef MIR_CORE_EXPORTS
+ #pragma comment(lib, "mir_core.lib")
+#endif
+
+#ifndef MIR_APP_EXPORTS
+ #pragma comment(lib, "mir_app.lib")
+#endif
+
#endif // M_CORE_H
diff --git a/include/newpluginapi.h b/include/newpluginapi.h
index 94e708d6a6..153da7936e 100644
--- a/include/newpluginapi.h
+++ b/include/newpluginapi.h
@@ -501,6 +501,14 @@ public:
template<class P>
OBJLIST<P> ACCPROTOPLUGIN<P>::g_arInstances(1, PtrKeySortT);
+#ifndef __NO_CMPLUGIN_NEEDED
+#ifdef _DEBUG
+#pragma comment(lib, "cmstubd.lib")
+#else
+#pragma comment(lib, "cmstub.lib")
+#endif
+#endif
+
EXTERN_C MIR_APP_DLL(HINSTANCE) GetInstByAddress(void* codePtr);
EXTERN_C MIR_APP_DLL(CMPluginBase&) GetPluginByInstance(HINSTANCE hInst);