Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2001-08-05 16:47:53 +0400
committerEarnie Boyd <earnie@users.sf.net>2001-08-05 16:47:53 +0400
commit54580e6a88d640e3fdc41a00c152cf773dfaba34 (patch)
tree9bc37bc901803c0e6dc1b5e1de00aaff4a320ddb /winsup/w32api/include/winbase.h
parente5ba4c060e410f92abe570933fe2bda239f34bd9 (diff)
* include/wtypes.h: (DECIMAL_SETZERO): Correct typo.
* include/oleidl.h (ISupportErrorInfo, ICreateInfo): Move from here * include/oaidl.h: ... to here. * include/oaidl.h ICreateErrorInfo): Add interface definition. (IErrorInfo::GetGUID): Change arg to GUID. (LPSUPPORTERRORINFO): Add typedef. (IID_ISupportErrorInfo): Change forward decl. of type to IID. * include/winsock2.h (WSAGET* and WSAMAKE*): Remove duplicate defines. * include/commctrl.h (TreeView_SetIndent): Correct typo. * include/commctrl.h (TBSTYPE_FLAT): Remove define. * include/commctrl.h (TBBUTTONINFO[AW]): Add struct definitions, and UNICODE mappings, if _WIN32_IE >= 0x400. (TBIF_* and TB_SETBUTTONINFO): Add defines, if _WIN32_IE >= 0x400. (CDIS_*,CDDS_*,CDRF_*) : Add defines. (tagNMCUSTOMDRAWINFO): Add struct definition and typedefs. (tagNMLVCUSTOMDRAW): Likewise. (tagNMTVCUSTOMDRAW): Likewise. (tagNMLVCACHEHINT): Likewise. * include/basetsd.h (#include <_mingw.h>): Remove. (__int64): Define. * include/wingdi.h (AC_SRC_OVER): Add define. (struct _BLENDFUNCTION): Add. * include/shlobj.h: Add BIF_* defines. * include/winerror.h (E_PENDING): Add error code define. * include/basetsd.h (#include <_mingw.h>): Add directive. * include/winbase.h(InterlockedCompareExchange): Change args and return value from PVOID to LONG. (InterlockedExchange): Change first arg to LPLONG. (InterlockedCompareExchangePointer): New macro. (InterlockedExchangePointer): New macro.
Diffstat (limited to 'winsup/w32api/include/winbase.h')
-rw-r--r--winsup/w32api/include/winbase.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h
index 1713d6146..0309788f8 100644
--- a/winsup/w32api/include/winbase.h
+++ b/winsup/w32api/include/winbase.h
@@ -1310,9 +1310,15 @@ BOOL WINAPI InitializeAcl(PACL,DWORD,DWORD);
VOID WINAPI InitializeCriticalSection(LPCRITICAL_SECTION);
BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
BOOL WINAPI InitializeSid (PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
-PVOID WINAPI InterlockedCompareExchange(PVOID*,PVOID,PVOID);
+LONG WINAPI InterlockedCompareExchange(LPLONG,LONG,LONG);
+/* PVOID WINAPI InterlockedCompareExchangePointer(PVOID*,PVOID,PVOID); */
+#define InterlockedCompareExchangePointer(d,e,c) \
+ (PVOID)InterlockedCompareExchange((LPLONG)(d),(LONG)(e),(LONG)(c))
LONG WINAPI InterlockedDecrement(LPLONG);
-LONG WINAPI InterlockedExchange(PLONG,LONG);
+LONG WINAPI InterlockedExchange(LPLONG,LONG);
+/* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */
+#define InterlockedExchangePointer(t,v) \
+ (PVOID)InterlockedExchange((LPLONG)(t),(LONG)(v)
LONG WINAPI InterlockedExchangeAdd(PLONG,LONG);
LONG WINAPI InterlockedIncrement(LPLONG);
BOOL WINAPI IsBadCodePtr(FARPROC);