G M: Restore the ability for libcxx to compile again on mingw 64.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@190837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2013-09-17 01:34:47 +00:00
parent cd942f1840
commit ef5aa93b9c
11 changed files with 51 additions and 33 deletions

View File

@@ -15,11 +15,16 @@
Functions and constants used in libc++ that are missing from the Windows C library.
*/
#include <cwchar> // mbstate_t
#include <wchar.h> // mbstate_t
#include <cstdarg> // va_ macros
#define swprintf _snwprintf
#define vswprintf _vsnwprintf
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
extern "C" {
int vasprintf( char **sptr, const char *__restrict fmt, va_list ap );