mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-12524 Remove fragile Windows conditional.
X-SVN-Rev: 38684
This commit is contained in:
parent
20a720bb9b
commit
10c2719630
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
*
|
||||
* Copyright (C) 1997-2015, International Business Machines
|
||||
* Copyright (C) 1997-2016, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
******************************************************************************
|
||||
|
@ -68,10 +68,8 @@ 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) || defined(__clang__)
|
||||
(LONG volatile *) // this is the type given in the API doc for this function.
|
||||
#endif
|
||||
&uio.fState, // Destination
|
||||
(LONG volatile *) // this is the type given in the API doc for this function.
|
||||
&uio.fState, // Destination
|
||||
1, // Exchange Value
|
||||
0); // Compare value
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue