Index: Source/wtf/Atomics.h |
diff --git a/Source/wtf/Atomics.h b/Source/wtf/Atomics.h |
index d760f2231419535d5373a1d7ed3cb8c867807f8b..9b4a4681d4013fd7ca9fdd3a8162040421bec577 100644 |
--- a/Source/wtf/Atomics.h |
+++ b/Source/wtf/Atomics.h |
@@ -76,10 +76,7 @@ namespace WTF { |
#if OS(WINDOWS) |
#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1 |
-#if OS(WINCE) |
-inline int atomicIncrement(int* addend) { return InterlockedIncrement(reinterpret_cast<long*>(addend)); } |
-inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); } |
-#elif COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) |
+#if COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) |
inline int atomicIncrement(int* addend) { return InterlockedIncrement(reinterpret_cast<long*>(addend)); } |
inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); } |
@@ -121,11 +118,7 @@ inline int64_t atomicDecrement(int64_t volatile* addend) { return __sync_sub_and |
#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) |