llvm-project/libcxx/include/support
Martin Storsjo 771edc7949 Allow to set locale on Windows.
Fix the problem PR31516 with setting locale on Windows by wrapping
_locale_t with a pointer-like class.

Reduces 74 test failures in std/localization test suite to 47 test
failures (on llvm clang, Visual Studio 2015). Number of test failures
doesn't depend on the platform (x86 or x64).

Patch by Andrey Khalyavin.

Differential Revision: https://reviews.llvm.org/D40181

llvm-svn: 318902
2017-11-23 10:38:18 +00:00
..
android Replace __ANDROID__ with __BIONIC__. 2016-09-19 18:00:45 +00:00
fuchsia [libcxx] Direct support for Fuchsia 2017-04-13 21:29:21 +00:00
ibm Split locale management out of ibm/xlocale.h. NFCI 2016-02-18 17:37:33 +00:00
musl
newlib PR32476: __nop_locale_mgmt.h not needed with newlib 2.5+ 2017-06-14 16:40:03 +00:00
solaris Implement LWG issue 1169. num_get not fully compatible with strto* 2016-06-19 06:58:22 +00:00
win32 Allow to set locale on Windows. 2017-11-23 10:38:18 +00:00
xlocale Fix signatures of fallback tow(upper|lower)_l. 2016-09-19 20:42:57 +00:00