CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
59 lines
2.3 KiB
C++
59 lines
2.3 KiB
C++
// -*- 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___MBSTATE_T_H
|
|
#define _LIBCPP___MBSTATE_T_H
|
|
|
|
#include <__config>
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
# pragma GCC system_header
|
|
#endif
|
|
|
|
// The goal of this header is to provide mbstate_t without requiring all of
|
|
// <uchar.h> or <wchar.h>. It's also used by the libc++ versions of <uchar.h>
|
|
// and <wchar.h> to get mbstate_t when the C library doesn't provide <uchar.h>
|
|
// or <wchar.h>, hence the #include_next of those headers instead of #include.
|
|
// (e.g. if <wchar.h> isn't present in the C library, the libc++ <wchar.h>
|
|
// will include this header. This header needs to not turn around and cyclically
|
|
// include <wchar.h>, but fall through to <uchar.h>.)
|
|
//
|
|
// This does not define std::mbstate_t -- this only brings in the declaration
|
|
// in the global namespace.
|
|
|
|
// We define this here to support older versions of glibc <wchar.h> that do
|
|
// not define this for clang. This is also set in libc++'s <wchar.h> header,
|
|
// and we need to do so here too to avoid a different function signature given
|
|
// a different include order.
|
|
#ifdef __cplusplus
|
|
# define __CORRECT_ISO_CPP_WCHAR_H_PROTO
|
|
#endif
|
|
|
|
#if _LIBCPP_HAS_MUSL_LIBC
|
|
# define __NEED_mbstate_t
|
|
# include <bits/alltypes.h>
|
|
# undef __NEED_mbstate_t
|
|
#elif _LIBCPP_LIBC_LLVM_LIBC
|
|
# include <llvm-libc-types/mbstate_t.h>
|
|
#elif __has_include(<bits/types/mbstate_t.h>)
|
|
# include <bits/types/mbstate_t.h> // works on most Unixes
|
|
#elif __has_include(<sys/_types/_mbstate_t.h>)
|
|
# include <sys/_types/_mbstate_t.h> // works on Darwin
|
|
#elif __has_include(<bits/mbstate_t.h>)
|
|
# include <bits/mbstate_t.h> // works for Android
|
|
#elif __has_include_next(<wchar.h>)
|
|
# include_next <wchar.h> // use the C standard provider of mbstate_t if present
|
|
#elif __has_include_next(<uchar.h>)
|
|
# include_next <uchar.h> // Try <uchar.h> in absence of <wchar.h> for mbstate_t
|
|
#else
|
|
# error "We don't know how to get the definition of mbstate_t on your platform."
|
|
#endif
|
|
|
|
#endif // _LIBCPP___MBSTATE_T_H
|