OSDN Git Service

2008-06-25 Brandon Sneed <nivenh@sourceware.org>
authornivenh <nivenh>
Wed, 25 Jun 2008 20:53:31 +0000 (20:53 +0000)
committernivenh <nivenh>
Wed, 25 Jun 2008 20:53:31 +0000 (20:53 +0000)
* include/winbase.h (InterlockedIncrement, InterlockedDecrement,
InterlockedCompareExchange, InterlockedExchange,
InterlockedCompareExchangePointer, InterlockedExchangeAdd,
InterlockedExchangePointer): Modified from PLONG to LONG volatile *.

winsup/w32api/ChangeLog
winsup/w32api/include/winbase.h

index 6af07ea..e5ba09b 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-25  Brandon Sneed  <nivenh@sourceware.org>
+
+       * include/winbase.h (InterlockedIncrement, InterlockedDecrement,
+       InterlockedCompareExchange, InterlockedExchange, 
+       InterlockedCompareExchangePointer, InterlockedExchangeAdd,
+       InterlockedExchangePointer): Modified from PLONG to LONG volatile *.
+
 2008-06-20  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * lib/ddk/hal.def (HalTranslateBusAddress): Correct suffix.
index 16f7fcb..3d37908 100644 (file)
@@ -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);