summaryrefslogtreecommitdiffstats
path: root/libcxx/include/support/win32/support.h
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-09-23 16:11:27 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-09-23 16:11:27 +0000
commitdbe8111948d372a6f7445e86a0ac985717fbe1bc (patch)
treec1b32170cbebef28cb095d90a69cbea28a050397 /libcxx/include/support/win32/support.h
parenta54fd541c23916eb65b252da1690516cb09f6731 (diff)
downloadbcm5719-llvm-dbe8111948d372a6f7445e86a0ac985717fbe1bc.tar.gz
bcm5719-llvm-dbe8111948d372a6f7445e86a0ac985717fbe1bc.zip
Work on Windows port by Ruben Van Boxem
llvm-svn: 140384
Diffstat (limited to 'libcxx/include/support/win32/support.h')
-rw-r--r--libcxx/include/support/win32/support.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/support/win32/support.h b/libcxx/include/support/win32/support.h
index 1a464bf7bfa..48225690d7a 100644
--- a/libcxx/include/support/win32/support.h
+++ b/libcxx/include/support/win32/support.h
@@ -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 );
OpenPOWER on IntegriCloud