summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mmap_SA/init.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:52:37 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 17:52:37 +0000
commit00c758611455ee1a978d4644a2897dbfa17a420a (patch)
tree3edbe20e1497adf6f672a69837e9e0f70a4fdf07 /plugins/Dbx_mmap_SA/init.cpp
parenteda27f234053df69a304848c91aba90897d7d097 (diff)
Dbx_mmap_SA:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@580 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mmap_SA/init.cpp')
-rw-r--r--plugins/Dbx_mmap_SA/init.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Dbx_mmap_SA/init.cpp b/plugins/Dbx_mmap_SA/init.cpp
index f13a4b5667..afc8cba593 100644
--- a/plugins/Dbx_mmap_SA/init.cpp
+++ b/plugins/Dbx_mmap_SA/init.cpp
@@ -30,7 +30,7 @@ int hLangpack;
extern char szDbPath[MAX_PATH];
-HINSTANCE g_hInst=NULL;
+HINSTANCE g_hInst = NULL;
PLUGINLINK *pluginLink;
PLUGININFOEX pluginInfo = {
@@ -121,7 +121,7 @@ static int grokHeader( char * profile, int * error )
// returns 0 if all the APIs are injected otherwise, 1
static int LoadDatabase( char * profile, void * plink )
{
- PLUGINLINK *link = plink;
+ PLUGINLINK *link = (PLUGINLINK *)plink;
#ifdef _DEBUG
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
@@ -189,28 +189,28 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
return TRUE;
}
-__declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
+extern "C" __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
{
return &dblink;
}
-__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
static const MUUID interfaces[] = {MIID_DATABASE, MIID_LAST};
-__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
{
return interfaces;
}
-int __declspec(dllexport) Load(PLUGINLINK * link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK * link)
{
return 1;
}
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
return 0;
-}
+} \ No newline at end of file