diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-12 18:16:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-12 18:16:11 +0300 |
commit | 75ac9efb6ed49795e21796419fcf8759c0d859dd (patch) | |
tree | cce55181f388cda884f886398ac281991290e1ce /include | |
parent | 8aa91557bbb3f9b728d51ff70eb6713e71fca1af (diff) |
compilation fix
Diffstat (limited to 'include')
-rw-r--r-- | include/m_core.h | 8 | ||||
-rw-r--r-- | include/newpluginapi.h | 8 |
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);
|