intl/icu-patches/clang-cl.diff
author ffxbld
Mon, 05 Jan 2015 23:57:37 -0500
branchMOBILE350b10_2015010523_RELBRANCH
changeset 236516 fe2e5b4fdb1a18e3c919b5e549bb27e2916b7a97
parent 212463 a2f87c54b7c87497738317bdc4ac1cda5f9bb5b5
permissions -rw-r--r--
Added FENNEC_35_0b10_RELEASE FENNEC_35_0b10_BUILD1 tag(s) for changeset d62b81f9aad4. DONTBUILD CLOSED TREE a=release

diff --git a/intl/icu/source/common/umutex.cpp b/intl/icu/source/common/umutex.cpp
index 8f55208..281c370 100644
--- a/intl/icu/source/common/umutex.cpp
+++ b/intl/icu/source/common/umutex.cpp
@@ -64,17 +64,17 @@ static UMutex   globalMutex = U_MUTEX_INITIALIZER;
 //   the caller needs to call the Init function.
 //
 
 U_NAMESPACE_BEGIN
 
 U_COMMON_API UBool U_EXPORT2 umtx_initImplPreInit(UInitOnce &uio) {
     for (;;) {
         int32_t previousState = InterlockedCompareExchange(
-#if (U_PLATFORM == U_PF_MINGW) || (U_PLATFORM == U_PF_CYGWIN)
+#if (U_PLATFORM == U_PF_MINGW) || (U_PLATFORM == U_PF_CYGWIN) || defined(__clang__)
            (LONG volatile *) // this is the type given in the API doc for this function.
 #endif
             &uio.fState,  //  Destination
             1,            //  Exchange Value
             0);           //  Compare value
 
         if (previousState == 0) {
             return true;   // Caller will next call the init function.