From c69825bda00c07d7fa91c043adb165272d92da5d Mon Sep 17 00:00:00 2001 From: "Oleg.Korshul" Date: Mon, 29 Sep 2014 14:24:28 +0000 Subject: [PATCH] defines git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58554 954022d7-b5bf-4e40-9824-e11837661b57 --- DesktopEditor/common/Types.h | 44 ------------------------------------ 1 file changed, 44 deletions(-) diff --git a/DesktopEditor/common/Types.h b/DesktopEditor/common/Types.h index 665e2556d7..68468e9e7e 100644 --- a/DesktopEditor/common/Types.h +++ b/DesktopEditor/common/Types.h @@ -119,7 +119,6 @@ typedef int RGB; }\ } -#ifdef _WIN32 #define ADDREFINTERFACE(pinterface)\ {\ if (pinterface!=NULL)\ @@ -135,47 +134,4 @@ typedef int RGB; pinterface=NULL;\ }\ } -#define QUERYINTERFACE(pinterface, pinterface_res, iid)\ -{\ - if (pinterface!=NULL)\ - pinterface->QueryInterface(iid, (void**)&pinterface_res);\ - else\ - pinterface_res=NULL;\ -} -#define RELEASEHEAP(pmem)\ -{\ - if (pmem!=NULL)\ - {\ - HeapFree(GetProcessHeap(), 0, pmem);\ - pmem=NULL;\ - }\ -} -#define RELEASEARRAY(parray)\ -{\ - if (parray!=NULL)\ - {\ - SafeArrayDestroy(parray);\ - parray=NULL;\ - }\ -} -#define RELEASESYSSTRING(pstring)\ -{\ - if (pstring!=NULL)\ - {\ - SysFreeString(pstring);\ - pstring=NULL;\ - }\ -} - -#define RELEASEHANDLE(phandle)\ -{\ - if (phandle!=NULL)\ - {\ - CloseHandle(phandle);\ - phandle=NULL;\ - }\ -} - -#endif // _WIN32 - #endif //_BUILD_TYPES_CROSSPLATFORM_H_