Work on Windows port by Ruben Van Boxem

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@140384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2011-09-23 16:11:27 +00:00
parent 92a07003b2
commit 6cd05eeb35
8 changed files with 159 additions and 30 deletions

View File

@@ -12,4 +12,12 @@
Functions and constants used in libc++ that are missing from the Windows C library.
*/
#if __MINGW32__
#include <stdio.h>
#define swprintf snwprintf
#endif // __MINGW32__
int vasprintf( char **sptr, const char *__restrict__ fmt , va_list ap );
size_t mbsnrtowcs( wchar_t *__restrict__ dst, const char **__restrict__ src,
size_t nmc, size_t len, mbstate_t *__restrict__ ps );
size_t wcsnrtombs( char *__restrict__ dst, const wchar_t **__restrict__ src,
size_t nwc, size_t len, mbstate_t *__restrict__ ps );