Skip to content

Commit

Permalink
[libc++] Revert "[SystemZ][z/OS] Missing wchar functions libc++"
Browse files Browse the repository at this point in the history
This reverts commit febbf68 because it
added files that were not under the LLVM license.

See https://reviews.llvm.org/D98207 for details.
  • Loading branch information
ldionne committed Mar 22, 2021
1 parent b7aae9f commit 1e337b1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 167 deletions.
6 changes: 3 additions & 3 deletions libcxx/include/wchar.h
Expand Up @@ -170,13 +170,13 @@ inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
}
#endif

#if defined(__cplusplus) && (defined(_LIBCPP_MSVCRT_LIKE) || defined(__MVS__))
#if defined(__cplusplus) && defined(_LIBCPP_MSVCRT_LIKE)
extern "C" {
size_t mbsnrtowcs(wchar_t *__restrict dst, const char **__restrict src,
size_t nmc, size_t len, mbstate_t *__restrict ps);
size_t wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src,
size_t nwc, size_t len, mbstate_t *__restrict ps);
} // extern "C"
#endif // __cplusplus && (_LIBCPP_MSVCRT || __MVS__)
} // extern "C++"
#endif // __cplusplus && _LIBCPP_MSVCRT

#endif // _LIBCPP_WCHAR_H
2 changes: 0 additions & 2 deletions libcxx/src/CMakeLists.txt
Expand Up @@ -92,8 +92,6 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
)
elseif(ZOS)
list(APPEND LIBCXX_SOURCES
support/ibm/mbsnrtowcs.inc
support/ibm/wcsnrtombs.inc
support/ibm/xlocale_zos.cpp
)
endif()
Expand Down
72 changes: 0 additions & 72 deletions libcxx/src/support/ibm/mbsnrtowcs.inc

This file was deleted.

90 changes: 0 additions & 90 deletions libcxx/src/support/ibm/wcsnrtombs.inc

This file was deleted.

0 comments on commit 1e337b1

Please sign in to comment.