Bumping manifests a=b2g-bump
[gecko.git] / intl / icu-patches / clang-cl.diff
blobf4ccd45415019e64c17edaaf59071a9a3a086aad
1 diff --git a/intl/icu/source/common/umutex.cpp b/intl/icu/source/common/umutex.cpp
2 index 8f55208..281c370 100644
3 --- a/intl/icu/source/common/umutex.cpp
4 +++ b/intl/icu/source/common/umutex.cpp
5 @@ -64,17 +64,17 @@ static UMutex globalMutex = U_MUTEX_INITIALIZER;
6 // the caller needs to call the Init function.
7 //
9 U_NAMESPACE_BEGIN
11 U_COMMON_API UBool U_EXPORT2 umtx_initImplPreInit(UInitOnce &uio) {
12 for (;;) {
13 int32_t previousState = InterlockedCompareExchange(
14 -#if (U_PLATFORM == U_PF_MINGW) || (U_PLATFORM == U_PF_CYGWIN)
15 +#if (U_PLATFORM == U_PF_MINGW) || (U_PLATFORM == U_PF_CYGWIN) || defined(__clang__)
16 (LONG volatile *) // this is the type given in the API doc for this function.
17 #endif
18 &uio.fState, // Destination
19 1, // Exchange Value
20 0); // Compare value
22 if (previousState == 0) {
23 return true; // Caller will next call the init function.