summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db_autobackups/main.cpp')
-rw-r--r--plugins/Db_autobackups/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp
index 1d00a3b60f..714c02d3f6 100644
--- a/plugins/Db_autobackups/main.cpp
+++ b/plugins/Db_autobackups/main.cpp
@@ -6,6 +6,7 @@ struct MM_INTERFACE mmi;
HINSTANCE hInst;
PLUGINLINK *pluginLink;
int hLangpack;
+TCHAR* profilePath;
HANDLE hFolder;
HANDLE hHooks[4];
@@ -29,8 +30,6 @@ PLUGININFOEX pluginInfo={
{ 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } }
};
-#define MIID_DB_AUTOBACKUPS { 0x81c220a6, 0x226, 0x4ad6, { 0xbf, 0xca, 0x21, 0x7b, 0x17, 0xa1, 0x60, 0x53 } }
-
struct
{
TCHAR* szDescr;
@@ -165,19 +164,19 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
return TRUE;
}
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
-int __declspec(dllexport) Load(PLUGINLINK *link)
+extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink=link;
SysInit();
return 0;
}
-int __declspec(dllexport) Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
int i;
@@ -249,4 +248,4 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle)
SendMessage(hwndTT, TTM_SETTITLE, 1, (LPARAM)ptszTitle);
SendMessage(hwndTT, TTM_SETMAXTIPWIDTH, 0, (LPARAM)700);
return hwndTT;
-}
+} \ No newline at end of file