freebsd-ports/devel/cloudabi-libc++/files/patch-include_cwchar
Ed Schouten 17ff9e1d7e Add libc++, libc++abi and libunwind for CloudABI.
In order to get C++ support for CloudABI working, we need to import
three libraries from LLVM, namely libc++, libc++abi and libunwind. Even
though they are installed separately, there seems to be a circular
dependency between them:

- libc++ depends on an internal header from libc++abi.
- libc++abi depends on public headers from libc++, but also an internal
  header from libunwind.
- similarly, libunwind depends on public headers from libc++, but also
  an internal header from libc++abi.

This change adds three new ports for these libraries. As with
compiler-rt, it seems to be almost impossible to use the cmake
infrastructure shipped with these libraries, for the reason that they
depend on a functional C++ compiler being present. This is obviously not
the case, as we're trying to get these installed.

The libc++ port ships with a small number of patches. Almost all of the
patches needed to get libc++ to work on CloudABI have already been
upstreamed. These are the last remaining ones that haven't been
upstreamed yet. Expect the patches to become smaller over time.

Differential Revision:	https://reviews.freebsd.org/D2898
Approved by:	bapt
2015-06-27 20:34:15 +00:00

32 lines
688 B
Text

--- include/cwchar.orig 2015-06-17 04:49:22 UTC
+++ include/cwchar
@@ -135,10 +135,8 @@ using ::fgetwc;
using ::fgetws;
using ::fputwc;
using ::fputws;
-using ::fwide;
using ::getwc;
using ::putwc;
-using ::ungetwc;
using ::wcstod;
#ifndef _LIBCPP_MSVCRT
using ::wcstof;
@@ -152,10 +150,7 @@ using ::wcstoul;
#ifndef _LIBCPP_HAS_NO_LONG_LONG
using ::wcstoull;
#endif // _LIBCPP_HAS_NO_LONG_LONG
-using ::wcscpy;
using ::wcsncpy;
-using ::wcscat;
-using ::wcsncat;
using ::wcscmp;
using ::wcscoll;
using ::wcsncmp;
@@ -199,7 +194,6 @@ using ::wmemset;
using ::wcsftime;
using ::btowc;
using ::wctob;
-using ::mbsinit;
using ::mbrlen;
using ::mbrtowc;
using ::wcrtomb;