Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- support/win32/support.h --------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | /* |
| 12 | Functions and constants used in libc++ that are missing from the Windows C library. |
| 13 | */ |
| 14 | |
Howard Hinnant | dbe8111 | 2011-09-23 16:11:27 +0000 | [diff] [blame^] | 15 | #if __MINGW32__ |
| 16 | #include <stdio.h> |
| 17 | #define swprintf snwprintf |
| 18 | #endif // __MINGW32__ |
Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 19 | int vasprintf( char **sptr, const char *__restrict__ fmt , va_list ap ); |
Howard Hinnant | dbe8111 | 2011-09-23 16:11:27 +0000 | [diff] [blame^] | 20 | size_t mbsnrtowcs( wchar_t *__restrict__ dst, const char **__restrict__ src, |
| 21 | size_t nmc, size_t len, mbstate_t *__restrict__ ps ); |
| 22 | size_t wcsnrtombs( char *__restrict__ dst, const wchar_t **__restrict__ src, |
| 23 | size_t nwc, size_t len, mbstate_t *__restrict__ ps ); |