diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-15 21:42:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-15 21:42:46 +0300 |
commit | de594644d5c14142346cbb039b027af79e718904 (patch) | |
tree | 50bb0688a110b51afc421e53a3b2768d543ae1a9 /include | |
parent | f058025a75b2585c394e89ba6ed632ff2f2bc065 (diff) |
cmstub.lib statically linked to any plugin that uses CMPlugin template
Diffstat (limited to 'include')
-rw-r--r-- | include/newpluginapi.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index fc1344030c..278b9192e4 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -331,13 +331,6 @@ template<class T> class PLUGIN : public CMPluginBase {
typedef CMPluginBase CSuper;
-public:
- static BOOL WINAPI RawDllMain(HINSTANCE hInstance, DWORD, LPVOID)
- {
- g_plugin.setInst(hInstance);
- return TRUE;
- }
-
protected:
PLUGIN(const char *moduleName)
: CSuper(moduleName)
@@ -420,4 +413,12 @@ 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
+
#endif // M_NEWPLUGINAPI_H__
|