mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
devel/wasi-libc is now flavourised per supported LLVM version. Each flavour includes/copies the corresponding clang's stdarg.h and stddef.h instead of simply using the latest clang release. Technically upstream dropped support for LLVM < 18, but the commit doing so admittedly operated under an uncertain assumption. LLVM 17 is still supported in these ports for the benefit of Rust and gecko@ ports, which specify LLVM 17 minimum, and to facilitate LTO with that version. LLVM 19 is also supported in this version, with the corresponding ports to be committed separately. Bump PORTREVISION of consumers
28 lines
853 B
C
28 lines
853 B
C
/*===---- __stddef_wchar.h - Definition of wchar_t -------------------------===
|
|
*
|
|
* 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
|
|
*
|
|
*===-----------------------------------------------------------------------===
|
|
*/
|
|
|
|
#if !defined(__cplusplus) || (defined(_MSC_VER) && !_NATIVE_WCHAR_T_DEFINED)
|
|
|
|
/*
|
|
* When -fbuiltin-headers-in-system-modules is set this is a non-modular header
|
|
* and needs to behave as if it was textual.
|
|
*/
|
|
#if !defined(_WCHAR_T) || \
|
|
(__has_feature(modules) && !__building_module(_Builtin_stddef))
|
|
#define _WCHAR_T
|
|
|
|
#ifdef _MSC_EXTENSIONS
|
|
#define _WCHAR_T_DEFINED
|
|
#endif
|
|
|
|
typedef __WCHAR_TYPE__ wchar_t;
|
|
|
|
#endif
|
|
|
|
#endif
|