From b2826a1ddc761fb6abcf8d80793a20387e9dc5f6 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 3 Jan 2017 21:53:51 +0000 Subject: clean up use of _WIN32 Replace the use of _WIN32 in libc++. Replace most use with a C runtime check _LIBCPP_MSVCRT or the new _LIBCPP_WIN32 to indicate that we are using the Win32 API. Use a new _LIBCPP_WCHAR_IS_UCS2 to indicate that we are on an environment that has a short wchar_t. llvm-svn: 290910 --- libcxx/src/system_error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/src/system_error.cpp') diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp index b00e461cc8f..c5471247682 100644 --- a/libcxx/src/system_error.cpp +++ b/libcxx/src/system_error.cpp @@ -65,7 +65,7 @@ constexpr size_t strerror_buff_size = 1024; string do_strerror_r(int ev); -#if defined(_WIN32) +#if defined(_LIBCPP_MSVCRT) string do_strerror_r(int ev) { char buffer[strerror_buff_size]; if (::strerror_s(buffer, strerror_buff_size, ev) == 0) -- cgit v1.2.3