ICU-10974 patch: building ICU with clang-cl

X-SVN-Rev: 35952
This commit is contained in:
Steven R. Loomis 2014-06-26 01:39:03 +00:00
parent 34b4644cac
commit b33fbff3e9

View File

@ -68,7 +68,7 @@ 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