diff options
-rw-r--r-- | plugins/AVS/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/AVS/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index e3d0fcf825..6fa9c01b15 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -356,7 +356,7 @@ static int ModulesLoaded(WPARAM, LPARAM) return 0;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
LoadACC();
@@ -384,7 +384,7 @@ extern "C" int __declspec(dllexport) Load(void) /////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
UninitPolls();
UnloadCache();
diff --git a/plugins/AVS/src/stdafx.h b/plugins/AVS/src/stdafx.h index c2616efc6e..f9911c6f6a 100644 --- a/plugins/AVS/src/stdafx.h +++ b/plugins/AVS/src/stdafx.h @@ -60,6 +60,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
/* most free()'s are invalid when the code is executed from a dll, so this changes
|