Title: [118922] trunk/Source/WTF
- Revision
- 118922
- Author
- [email protected]
- Date
- 2012-05-30 07:24:03 -0700 (Wed, 30 May 2012)
Log Message
Build fix for WinCE after r118603.
* wtf/Atomics.h:
(WTF::weakCompareAndSwap):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (118921 => 118922)
--- trunk/Source/WTF/ChangeLog 2012-05-30 14:20:05 UTC (rev 118921)
+++ trunk/Source/WTF/ChangeLog 2012-05-30 14:24:03 UTC (rev 118922)
@@ -1,3 +1,10 @@
+2012-05-30 Patrick Gansterer <[email protected]>
+
+ Build fix for WinCE after r118603.
+
+ * wtf/Atomics.h:
+ (WTF::weakCompareAndSwap):
+
2012-05-29 Anders Carlsson <[email protected]>
String should be move enabled/optimized
Modified: trunk/Source/WTF/wtf/Atomics.h (118921 => 118922)
--- trunk/Source/WTF/wtf/Atomics.h 2012-05-30 14:20:05 UTC (rev 118921)
+++ trunk/Source/WTF/wtf/Atomics.h 2012-05-30 14:24:03 UTC (rev 118922)
@@ -121,7 +121,11 @@
#if OS(WINDOWS)
inline bool weakCompareAndSwap(volatile unsigned* location, unsigned expected, unsigned newValue)
{
+#if OS(WINCE)
+ return InterlockedCompareExchange(reinterpret_cast<LONG*>(const_cast<unsigned*>(location)), static_cast<LONG>(newValue), static_cast<LONG>(expected)) == static_cast<LONG>(expected);
+#else
return InterlockedCompareExchange(reinterpret_cast<LONG volatile*>(location), static_cast<LONG>(newValue), static_cast<LONG>(expected)) == static_cast<LONG>(expected);
+#endif
}
inline bool weakCompareAndSwap(void*volatile* location, void* expected, void* newValue)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes