diff options
author | Brandon Sneed <nivenh@sourceware.org> | 2008-06-25 20:53:31 +0000 |
---|---|---|
committer | Brandon Sneed <nivenh@sourceware.org> | 2008-06-25 20:53:31 +0000 |
commit | 854c27dd8dc1b54e53291d671930c761eac46f8f (patch) | |
tree | c8bb16973f23d65b67841c2c8ff755eaa102f85b /winsup/w32api/include | |
parent | 5592f939b4762cf0eda460d502f880baa179e201 (diff) | |
download | newlib-854c27dd8dc1b54e53291d671930c761eac46f8f.zip newlib-854c27dd8dc1b54e53291d671930c761eac46f8f.tar.gz newlib-854c27dd8dc1b54e53291d671930c761eac46f8f.tar.bz2 |
2008-06-25 Brandon Sneed <nivenh@sourceware.org>
* include/winbase.h (InterlockedIncrement, InterlockedDecrement,
InterlockedCompareExchange, InterlockedExchange,
InterlockedCompareExchangePointer, InterlockedExchangeAdd,
InterlockedExchangePointer): Modified from PLONG to LONG volatile *.
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r-- | winsup/w32api/include/winbase.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h index 16f7fcb..3d37908 100644 --- a/winsup/w32api/include/winbase.h +++ b/winsup/w32api/include/winbase.h @@ -1660,20 +1660,20 @@ WINBASEAPI VOID WINAPI InitializeSListHead(PSLIST_HEADER); #endif #ifndef __INTERLOCKED_DECLARED #define __INTERLOCKED_DECLARED -LONG WINAPI InterlockedCompareExchange(LPLONG,LONG,LONG); +LONG WINAPI InterlockedCompareExchange(LONG volatile *,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(LPLONG,LONG); + (PVOID)InterlockedCompareExchange((LONG volatile *)(d),(LONG)(e),(LONG)(c)) +LONG WINAPI InterlockedDecrement(LONG volatile *); +LONG WINAPI InterlockedExchange(LONG volatile *,LONG); /* PVOID WINAPI InterlockedExchangePointer(PVOID*,PVOID); */ #define InterlockedExchangePointer(t,v) \ - (PVOID)InterlockedExchange((LPLONG)(t),(LONG)(v)) -LONG WINAPI InterlockedExchangeAdd(LPLONG,LONG); + (PVOID)InterlockedExchange((LONG volatile *)(t),(LONG)(v)) +LONG WINAPI InterlockedExchangeAdd(LONG volatile *,LONG); #if (_WIN32_WINNT >= 0x0501) PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER); #endif -LONG WINAPI InterlockedIncrement(LPLONG); +LONG WINAPI InterlockedIncrement(LONG volatile *); #if (_WIN32_WINNT >= 0x0501) PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER); PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY); |