Fix win32 support header for mingw32.
These functions are defined as static in the mingw32 headers.
llvm-svn: 219140
diff --git a/libcxx/include/support/win32/support.h b/libcxx/include/support/win32/support.h
index bc96587..5765bab 100644
--- a/libcxx/include/support/win32/support.h
+++ b/libcxx/include/support/win32/support.h
@@ -31,6 +31,8 @@
#define NOMINMAX
#endif
+// The mingw headers already define these as static.
+#ifndef __MINGW32__
extern "C" {
int vasprintf(char **sptr, const char *__restrict fmt, va_list ap);
@@ -40,6 +42,7 @@
size_t wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src,
size_t nwc, size_t len, mbstate_t *__restrict ps);
}
+#endif // __MINGW32__
#if defined(_LIBCPP_MSVCRT)
#define snprintf _snprintf