G M: Restore the ability for libcxx to compile again on mingw 64.
llvm-svn: 190837
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 5f878d4bd2730576533183b62910c8a1c3d94119
diff --git a/include/cstdio b/include/cstdio
index 1cde3ee..3bc9659 100644
--- a/include/cstdio
+++ b/include/cstdio
@@ -103,6 +103,11 @@
#pragma GCC system_header
#endif
+// snprintf
+#if defined(_LIBCPP_MSVCRT)
+#include "support/win32/support.h"
+#endif
+
#ifdef getc
inline _LIBCPP_INLINE_VISIBILITY int __libcpp_getc(FILE* __stream) {return getc(__stream);}
#undef getc