Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
Howard Hinnant | 3438889 | 2011-09-28 21:39:20 +0000 | [diff] [blame] | 2 | //===----------------------- support/win32/support.h ----------------------===// |
Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 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 | |
Howard Hinnant | 3438889 | 2011-09-28 21:39:20 +0000 | [diff] [blame] | 11 | #ifndef _LIBCPP_SUPPORT_WIN32_SUPPORT_H |
| 12 | #define _LIBCPP_SUPPORT_WIN32_SUPPORT_H |
| 13 | |
Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 14 | /* |
| 15 | Functions and constants used in libc++ that are missing from the Windows C library. |
| 16 | */ |
| 17 | |
Howard Hinnant | 3438889 | 2011-09-28 21:39:20 +0000 | [diff] [blame] | 18 | #include <wchar.h> // mbstate_t |
| 19 | #include <stdio.h> // _snwprintf |
| 20 | #define swprintf _snwprintf |
| 21 | #define vswprintf _vsnwprintf |
| 22 | |
Howard Hinnant | 3c78ca0 | 2011-09-22 19:10:18 +0000 | [diff] [blame] | 23 | int vasprintf( char **sptr, const char *__restrict__ fmt , va_list ap ); |
Howard Hinnant | 3438889 | 2011-09-28 21:39:20 +0000 | [diff] [blame] | 24 | int asprintf(char **sptr, const char *__restrict__ fmt, ...); |
| 25 | |
Howard Hinnant | dbe8111 | 2011-09-23 16:11:27 +0000 | [diff] [blame] | 26 | size_t mbsnrtowcs( wchar_t *__restrict__ dst, const char **__restrict__ src, |
| 27 | size_t nmc, size_t len, mbstate_t *__restrict__ ps ); |
| 28 | size_t wcsnrtombs( char *__restrict__ dst, const wchar_t **__restrict__ src, |
| 29 | size_t nwc, size_t len, mbstate_t *__restrict__ ps ); |
Howard Hinnant | 3438889 | 2011-09-28 21:39:20 +0000 | [diff] [blame] | 30 | |
| 31 | #endif // _LIBCPP_SUPPORT_WIN32_SUPPORT_H |