From 2a3b48f91c74e4d0115c26af702a4d2ffccfc805 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Apr 2015 21:25:59 +0000 Subject: end of zoo with various _WIN32_WINNT versions git-svn-id: http://svn.miranda-ng.org/main/trunk@13112 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SMS/src/AdditionalFunctions/ListMT.h | 9 --------- plugins/SMS/src/common.h | 3 --- 2 files changed, 12 deletions(-) (limited to 'plugins/SMS/src') diff --git a/plugins/SMS/src/AdditionalFunctions/ListMT.h b/plugins/SMS/src/AdditionalFunctions/ListMT.h index 04f2552aaf..15c4b1d8b2 100644 --- a/plugins/SMS/src/AdditionalFunctions/ListMT.h +++ b/plugins/SMS/src/AdditionalFunctions/ListMT.h @@ -43,12 +43,7 @@ __inline DWORD ListMTInitialize(PCLIST_MT pclmtListMT,DWORD dwSpinCount) { DWORD dwRetErrorCode; -#if (_WIN32_WINNT >= 0x0403) if (InitializeCriticalSectionAndSpinCount(&pclmtListMT->cs,((dwSpinCount)? (dwSpinCount | 0x80000000):0L))) -#else - InitializeCriticalSection(&pclmtListMT->cs); - if (TRUE) -#endif { InterlockedExchangePointer((volatile PVOID*)&pclmtListMT->nCount,NULL); pclmtListMT->plmtiFirst=NULL; @@ -72,11 +67,7 @@ __inline void ListMTDestroy(PCLIST_MT pclmtListMT) __inline BOOL ListMTTryLock(PCLIST_MT pclmtListMT) { -#if (_WIN32_WINNT >= 0x0400) return(TryEnterCriticalSection(&pclmtListMT->cs)); -#else - return(FALSE); -#endif } diff --git a/plugins/SMS/src/common.h b/plugins/SMS/src/common.h index 2b3f917afa..a83c711a42 100644 --- a/plugins/SMS/src/common.h +++ b/plugins/SMS/src/common.h @@ -1,9 +1,6 @@ #ifndef _COMMON_H #define _COMMON_H -#define _WIN32_WINNT 0x0500 -#define _WIN32_IE 0x0400 - #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #define VC_EXTRALEAN -- cgit v1.2.3