mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-25 04:56:13 +08:00
Remove a now unneeded __CloudABI__ check.
CloudABI has gained the setlocale() function in the meantime, meaning there is no longer a need to conditionalize this. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -579,10 +579,8 @@ locale::global(const locale& loc)
|
|||||||
locale& g = __global();
|
locale& g = __global();
|
||||||
locale r = g;
|
locale r = g;
|
||||||
g = loc;
|
g = loc;
|
||||||
#ifndef __CloudABI__
|
|
||||||
if (g.name() != "*")
|
if (g.name() != "*")
|
||||||
setlocale(LC_ALL, g.name().c_str());
|
setlocale(LC_ALL, g.name().c_str());
|
||||||
#endif
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user