diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-05-31 22:14:05 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-05-31 22:14:05 +0000 |
commit | 1ec026252b3027f06c8a561d93fc0a3801107bba (patch) | |
tree | 1f2f3fb8bb2fcac2fa57ada4189b42c73f0d0fe4 /libcxx/src/system_error.cpp | |
parent | 27db230ab05a685268b94f7296a99d380ab04611 (diff) | |
download | bcm5719-llvm-1ec026252b3027f06c8a561d93fc0a3801107bba.tar.gz bcm5719-llvm-1ec026252b3027f06c8a561d93fc0a3801107bba.zip |
Fix Libc++ build with MinGW64
Summary: This patch corrects the build errors I encountered when building on MinGW64.
Reviewers: mati865, rnk, compnerd, smeenai, bcraig
Reviewed By: mati865, smeenai
Subscribers: martell, chapuni, cfe-commits
Differential Revision: https://reviews.llvm.org/D33082
llvm-svn: 304360
Diffstat (limited to 'libcxx/src/system_error.cpp')
-rw-r--r-- | libcxx/src/system_error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp index cbbbb5dcd15..17f2c9a5ba7 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(_LIBCPP_MSVCRT) +#if defined(_LIBCPP_MSVCRT_LIKE) string do_strerror_r(int ev) { char buffer[strerror_buff_size]; if (::strerror_s(buffer, strerror_buff_size, ev) == 0) |