| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS |
| #error LC_ALL not defined |
| #error LC_COLLATE not defined |
| #error LC_CTYPE not defined |
| #error LC_MONETARY not defined |
| #error LC_NUMERIC not defined |
| #error LC_TIME not defined |
| #endif // !_LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS |
| ((void)lc); // Prevent unused warning |
| #ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS |
| static_assert((std::is_same<decltype(std::setlocale(0, "")), char*>::value), ""); |
| static_assert((std::is_same<decltype(std::localeconv()), std::lconv*>::value), ""); |