diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r-- | protocols/Gadu-Gadu/src/gg.cpp | 4 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index aaf4e792b8..848f5ba2f0 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -295,7 +295,7 @@ void GaduProto::OnBuildProtoMenu() //////////////////////////////////////////////////////////
// When plugin is loaded
//
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULESLOADED, gg_modulesloaded);
@@ -306,7 +306,7 @@ extern "C" int __declspec(dllexport) Load(void) //////////////////////////////////////////////////////////
// When plugin is unloaded
//
-extern "C" int __declspec(dllexport) Unload()
+int CMPlugin::Unload()
{
WSACleanup();
return 0;
diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index b77a27aee0..ada0efe1d8 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -316,6 +316,9 @@ void crc_gentable(void); struct CMPlugin : public ACCPROTOPLUGIN<GaduProto>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#endif
|