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/support/win32/support.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/support/win32/support.cpp')
-rw-r--r-- | libcxx/src/support/win32/support.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libcxx/src/support/win32/support.cpp b/libcxx/src/support/win32/support.cpp index e989681a6d5..dbd1c4c418a 100644 --- a/libcxx/src/support/win32/support.cpp +++ b/libcxx/src/support/win32/support.cpp @@ -15,17 +15,6 @@ #include <cstring> // strcpy, wcsncpy #include <cwchar> // mbstate_t -// Some of these functions aren't standard or if they conform, the name does not. - -int asprintf(char **sptr, const char *__restrict format, ...) -{ - va_list ap; - va_start(ap, format); - int result; - result = vasprintf(sptr, format, ap); - va_end(ap); - return result; -} // Like sprintf, but when return value >= 0 it returns // a pointer to a malloc'd string in *sptr. |