1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 #include <type_traits>
15 #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
18 #error LC_ALL not defined
22 #error LC_COLLATE not defined
26 #error LC_CTYPE not defined
30 #error LC_MONETARY not defined
34 #error LC_NUMERIC not defined
38 #error LC_TIME not defined
41 #endif // !_LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
44 #error NULL not defined
50 ((void)lc); // Prevent unused warning
51 #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
52 static_assert((std::is_same<decltype(std::setlocale(0, "")), char*>::value), "");
54 static_assert((std::is_same<decltype(std::localeconv()), std::lconv*>::value), "");