diff options
Diffstat (limited to 'include/newpluginapi.h')
-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__
|