From 7babc5212cc846d2a7d1ffa964663dea497d3ef4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 May 2013 21:03:35 +0000 Subject: compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@4647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Common.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/PluginUpdater/src/Common.h b/plugins/PluginUpdater/src/Common.h index 0ec714323c..4e8e121451 100644 --- a/plugins/PluginUpdater/src/Common.h +++ b/plugins/PluginUpdater/src/Common.h @@ -163,9 +163,17 @@ int SafeCreateFilePath(TCHAR *pFolder); #if MIRANDA_VER < 0x0A00 -#define db_free(A) db_free(A) -#define db_get_b(A,B,C,D) db_get_b(A,B,C,D) -#define db_set_s(A,B,C,D) db_set_s(A,B,C,D) +#define db_free(A) DBFreeVariant(A) + +#define db_get_b(A,B,C,D) DBGetContactSettingByte(A,B,C,D) +#define db_get_dw(A,B,C,D) DBGetContactSettingDword(A,B,C,D) +#define db_get_s(A,B,C,D) DBGetContactSettingString(A,B,C,D) +#define db_get_ts(A,B,C,D) DBGetContactSettingTString(A,B,C,D) + +#define db_set_b(A,B,C,D) DBWriteContactSettingByte(A,B,C,D) +#define db_set_dw(A,B,C,D) DBWriteContactSettingDword(A,B,C,D) +#define db_set_s(A,B,C,D) DBWriteContactSettingString(A,B,C,D) +#define db_set_ts(A,B,C,D) DBWriteContactSettingTString(A,B,C,D) template class mir_ptr { -- cgit v1.2.3