diff options
author | Dan Albert <danalbert@google.com> | 2014-10-06 20:06:33 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-10-06 20:06:33 +0000 |
commit | cfc922996615b5756b110aea77c473f8bd2eeca8 (patch) | |
tree | d7bbc238bfc68e57ae71e9e3cae7bd665200ca01 /libcxx/include/support | |
parent | 7bc9185ab58e29ea5f6b13f203f04a80f3c2ec68 (diff) | |
download | bcm5719-llvm-cfc922996615b5756b110aea77c473f8bd2eeca8.tar.gz bcm5719-llvm-cfc922996615b5756b110aea77c473f8bd2eeca8.zip |
Fix win32 support header for mingw32.
These functions are defined as static in the mingw32 headers.
llvm-svn: 219140
Diffstat (limited to 'libcxx/include/support')
-rw-r--r-- | libcxx/include/support/win32/support.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/support/win32/support.h b/libcxx/include/support/win32/support.h index bc96587f58c..5765babcd13 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 mbsnrtowcs(wchar_t *__restrict dst, const char **__restrict src, 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 |