1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H
10 #define _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H
11 
12 #if defined(_NEWLIB_VERSION)
13 
14 #include <cstdlib>
15 #include <clocale>
16 #include <cwctype>
17 #include <ctype.h>
18 #if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \
19     __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
20 #include <support/xlocale/__nop_locale_mgmt.h>
21 #include <support/xlocale/__posix_l_fallback.h>
22 #include <support/xlocale/__strtonum_fallback.h>
23 #endif
24 
25 #endif // _NEWLIB_VERSION
26 
27 #endif
28