Fix win32 support header for mingw32.
These functions are defined as static in the mingw32 headers. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@219140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8758796fc9
commit
4c88839716
@ -31,6 +31,8 @@
|
|||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// The mingw headers already define these as static.
|
||||||
|
#ifndef __MINGW32__
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
int vasprintf(char **sptr, const char *__restrict fmt, va_list ap);
|
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 wcsnrtombs(char *__restrict dst, const wchar_t **__restrict src,
|
||||||
size_t nwc, size_t len, mbstate_t *__restrict ps);
|
size_t nwc, size_t len, mbstate_t *__restrict ps);
|
||||||
}
|
}
|
||||||
|
#endif // __MINGW32__
|
||||||
|
|
||||||
#if defined(_LIBCPP_MSVCRT)
|
#if defined(_LIBCPP_MSVCRT)
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user