blob: 48225690d7aadd5fa63f470361305b086e02ada8 [file] [log] [blame]
Howard Hinnant3c78ca02011-09-22 19:10:18 +00001// -*- 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 Hinnantdbe81112011-09-23 16:11:27 +000015#if __MINGW32__
16#include <stdio.h>
17#define swprintf snwprintf
18#endif // __MINGW32__
Howard Hinnant3c78ca02011-09-22 19:10:18 +000019int vasprintf( char **sptr, const char *__restrict__ fmt , va_list ap );
Howard Hinnantdbe81112011-09-23 16:11:27 +000020size_t mbsnrtowcs( wchar_t *__restrict__ dst, const char **__restrict__ src,
21 size_t nmc, size_t len, mbstate_t *__restrict__ ps );
22size_t wcsnrtombs( char *__restrict__ dst, const wchar_t **__restrict__ src,
23 size_t nwc, size_t len, mbstate_t *__restrict__ ps );