Tiger build fix.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2008 08:16:39 +0000 (08:16 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2008 08:16:39 +0000 (08:16 +0000)
* platform/Threading.h: The OSAtomic functions take non-volatile pointers on Tiger.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29152 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/Threading.h

index ebde351..7f85775 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-04  Mark Rowe  <mrowe@apple.com>
+
+        Tiger build fix.
+
+        * platform/Threading.h: The OSAtomic functions take non-volatile pointers on Tiger.
+
 2008-01-03  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Maciej Stachowiak.
index 765c9ae..2ec2cee 100644 (file)
@@ -174,8 +174,8 @@ inline int atomicDecrement(int volatile* addend) { return InterlockedDecrement(r
 #elif PLATFORM(DARWIN)
 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1
 
-inline void atomicIncrement(int volatile* addend) { OSAtomicIncrement32Barrier(addend); }
-inline int atomicDecrement(int volatile* addend) { return OSAtomicDecrement32Barrier(addend); }
+inline void atomicIncrement(int volatile* addend) { OSAtomicIncrement32Barrier(const_cast<int*>(addend)); }
+inline int atomicDecrement(int volatile* addend) { return OSAtomicDecrement32Barrier(const_cast<int*>(addend)); }
 
 #elif COMPILER(GCC)
 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1