From 0fd468d8b619965db3264e71d5b493e572c33305 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 Jun 2012 13:25:26 +0000 Subject: HistorySweeperLight: plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistorySweeperLight/historysweeperlight.cpp | 14 +++----------- plugins/HistorySweeperLight/historysweeperlight.h | 1 + plugins/HistorySweeperLight/historysweeperlight_10.vcxproj | 6 +++--- .../historysweeperlight_10.vcxproj.filters | 6 +++--- plugins/HistorySweeperLight/main.cpp | 8 ++++---- 5 files changed, 14 insertions(+), 21 deletions(-) (limited to 'plugins') diff --git a/plugins/HistorySweeperLight/historysweeperlight.cpp b/plugins/HistorySweeperLight/historysweeperlight.cpp index 50cc7e1386..50e37ddc34 100644 --- a/plugins/HistorySweeperLight/historysweeperlight.cpp +++ b/plugins/HistorySweeperLight/historysweeperlight.cpp @@ -21,14 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "historysweeperlight.h" -#ifdef VC6BUILD -#define _____TIMEPROC time -#else -#define _____TIMEPROC _time32 -#endif - -_CRTIMP __time32_t __cdecl _____TIMEPROC(_Out_opt_ __time32_t * _Time); - typedef struct { time_t time; @@ -38,7 +30,7 @@ typedef struct // build criteria time_t BuildCriteria(int dwti) { - time_t tim = _____TIMEPROC(NULL); + time_t tim = time(NULL); switch (dwti) { @@ -119,7 +111,7 @@ static void GetBookmarks(HANDLE hContact, BEventData** books, size_t* bookcnt ) size_t recSize = *(WORD*)dbv.pbVal; size_t numb = (dbv.cpbVal - sizeof(WORD)) / recSize; - BEventData* tbooks = mir_alloc(sizeof(BEventData)*numb); + BEventData* tbooks = (BEventData*)mir_alloc(sizeof(BEventData)*numb); size_t tbookcnt = 0; size_t i; @@ -253,4 +245,4 @@ int OnWindowEvent(WPARAM wParam, LPARAM lParam) } return 0; -} +} \ No newline at end of file diff --git a/plugins/HistorySweeperLight/historysweeperlight.h b/plugins/HistorySweeperLight/historysweeperlight.h index 2600cc2d67..c7fbeaeb25 100644 --- a/plugins/HistorySweeperLight/historysweeperlight.h +++ b/plugins/HistorySweeperLight/historysweeperlight.h @@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include +#include #include #include diff --git a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj index b6b1ab01e2..5d16028b05 100644 --- a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj +++ b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj @@ -170,9 +170,9 @@ - - - + + + diff --git a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters index feb246208c..215f46c7f5 100644 --- a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters +++ b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters @@ -15,13 +15,13 @@ - + Source Files - + Source Files - + Source Files diff --git a/plugins/HistorySweeperLight/main.cpp b/plugins/HistorySweeperLight/main.cpp index 3174ab1369..9c1e4e8c66 100644 --- a/plugins/HistorySweeperLight/main.cpp +++ b/plugins/HistorySweeperLight/main.cpp @@ -149,12 +149,12 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) return 0; } -__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfoEx; } -int __declspec(dllexport) Load(PLUGINLINK *link) +extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) { pluginLink = link; @@ -169,7 +169,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) return 0; } -int __declspec(dllexport) Unload(void) +extern "C" __declspec(dllexport) int Unload(void) { int i; @@ -182,4 +182,4 @@ int __declspec(dllexport) Unload(void) } return 0; -} +} \ No newline at end of file -- cgit v1.2.3