diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-24 21:25:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-24 21:25:59 +0000 |
commit | 2a3b48f91c74e4d0115c26af702a4d2ffccfc805 (patch) | |
tree | 307b681fa5b1a83db485334d3d24b80d2333c39d /plugins/SMS/src | |
parent | 467d090133efe3ee3bf093954a333928f001c8a5 (diff) |
end of zoo with various _WIN32_WINNT versions
git-svn-id: http://svn.miranda-ng.org/main/trunk@13112 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SMS/src')
-rw-r--r-- | plugins/SMS/src/AdditionalFunctions/ListMT.h | 9 | ||||
-rw-r--r-- | plugins/SMS/src/common.h | 3 |
2 files changed, 0 insertions, 12 deletions
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
|