summaryrefslogtreecommitdiff
path: root/plugins/NotifyAnything/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NotifyAnything/src')
-rw-r--r--plugins/NotifyAnything/src/main.cpp4
-rw-r--r--plugins/NotifyAnything/src/stdafx.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp
index a2fa27f3a9..725772cfa3 100644
--- a/plugins/NotifyAnything/src/main.cpp
+++ b/plugins/NotifyAnything/src/main.cpp
@@ -965,7 +965,7 @@ void stop_threads()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
g_firstrun = true;
@@ -987,7 +987,7 @@ extern "C" int __declspec(dllexport) Load()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
stop_threads();
WSACleanup();
diff --git a/plugins/NotifyAnything/src/stdafx.h b/plugins/NotifyAnything/src/stdafx.h
index 940b5d379f..70ad7e8304 100644
--- a/plugins/NotifyAnything/src/stdafx.h
+++ b/plugins/NotifyAnything/src/stdafx.h
@@ -26,6 +26,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
//---------------------------