mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
libcxx: Fix locale-related compilation errors on NetBSD.
llvm/llvm-project#143055
This commit is contained in:
parent
98cf81d51c
commit
b6d9046242
5 changed files with 26 additions and 2 deletions
|
|
@ -115,6 +115,8 @@
|
|||
# include <__locale_dir/support/apple.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
# include <__locale_dir/support/freebsd.h>
|
||||
#elif defined(__NetBSD__)
|
||||
# include <__locale_dir/support/netbsd.h>
|
||||
#elif defined(_LIBCPP_MSVCRT_LIKE)
|
||||
# include <__locale_dir/support/windows.h>
|
||||
#elif defined(__Fuchsia__)
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#include <xlocale.h>
|
||||
|
||||
#include <__locale_dir/support/bsd_like.h>
|
||||
|
||||
#endif // _LIBCPP___LOCALE_DIR_SUPPORT_APPLE_H
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@
|
|||
# include <wctype.h>
|
||||
#endif
|
||||
|
||||
#include <xlocale.h>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#include <xlocale.h>
|
||||
|
||||
#include <__locale_dir/support/bsd_like.h>
|
||||
|
||||
#endif // _LIBCPP___LOCALE_DIR_SUPPORT_FREEBSD_H
|
||||
|
|
|
|||
20
lib/libcxx/include/__locale_dir/support/netbsd.h
vendored
Normal file
20
lib/libcxx/include/__locale_dir/support/netbsd.h
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//===-----------------------------------------------------------------------===//
|
||||
//
|
||||
// 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___LOCALE_DIR_SUPPORT_NETBSD_H
|
||||
#define _LIBCPP___LOCALE_DIR_SUPPORT_NETBSD_H
|
||||
|
||||
#include <__config>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
#endif
|
||||
|
||||
#include <__locale_dir/support/bsd_like.h>
|
||||
|
||||
#endif // _LIBCPP___LOCALE_DIR_SUPPORT_NETBSD_H
|
||||
Loading…
Add table
Reference in a new issue