[libcxx] r294833 - Remove a now unneeded __CloudABI__ check.

Ed Schouten via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 11 00:33:16 PST 2017


Author: ed
Date: Sat Feb 11 02:33:16 2017
New Revision: 294833

URL: http://llvm.org/viewvc/llvm-project?rev=294833&view=rev
Log:
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.


Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=294833&r1=294832&r2=294833&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Sat Feb 11 02:33:16 2017
@@ -579,10 +579,8 @@ locale::global(const locale& loc)
     locale& g = __global();
     locale r = g;
     g = loc;
-#ifndef __CloudABI__
     if (g.name() != "*")
         setlocale(LC_ALL, g.name().c_str());
-#endif
     return r;
 }
 




More information about the cfe-commits mailing list