diff options
author | vvvv <vvvv@ydb.tech> | 2024-03-28 09:20:41 +0300 |
---|---|---|
committer | vvvv <vvvv@ydb.tech> | 2024-03-28 09:30:09 +0300 |
commit | 8deb352c61c1e941cac7c21b303a5d26f63c03af (patch) | |
tree | f4f88f8f40f279f8f1aeb7a772d29c7b39584db6 /contrib/libs/cxxsupp/libcxx | |
parent | f828a2a3fec6993c8ab442ede0fd5f4a617a78f2 (diff) | |
download | ydb-8deb352c61c1e941cac7c21b303a5d26f63c03af.tar.gz |
export contrib/libs/libc_compat/ubuntu_14
0ec9dab7e194664a7c2b8df657f03408fe3378bc
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/uchar.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/uchar.h b/contrib/libs/cxxsupp/libcxx/include/uchar.h new file mode 100644 index 0000000000..546113f7ea --- /dev/null +++ b/contrib/libs/cxxsupp/libcxx/include/uchar.h @@ -0,0 +1,56 @@ +// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// 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_UCHAR_H +#define _LIBCPP_UCHAR_H + +/* + uchar.h synopsis // since C++11 + +Macros: + + __STDC_UTF_16__ + __STDC_UTF_32__ + +Types: + + mbstate_t + size_t + +size_t mbrtoc8(char8_t* pc8, const char* s, size_t n, mbstate_t* ps); // since C++20 +size_t c8rtomb(char* s, char8_t c8, mbstate_t* ps); // since C++20 +size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps); +size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps); +size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps); +size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps); + +*/ + +#include <__config> + +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +# pragma GCC system_header +#endif + +#if !defined(_LIBCPP_CXX03_LANG) + +// Some platforms don't implement <uchar.h> and we don't want to give a hard +// error on those platforms. When the platform doesn't provide <uchar.h>, at +// least include <stddef.h> so we get the declaration for size_t, and try to +// get the declaration of mbstate_t too. +#if __has_include_next(<uchar.h>) +# include_next <uchar.h> +#else +# include <__mbstate_t.h> +# include <stddef.h> +#endif + +#endif // _LIBCPP_CXX03_LANG + +#endif // _LIBCPP_UCHAR_H |