From 432092ebdbfc7d2506502d65040c45538763294e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 15 Feb 2015 23:17:20 +0000 Subject: [PATCH] MinGW's snprintf is not exposed through std::. llvm-svn: 229342 --- llvm/include/llvm/Support/Format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h index 21bb4f9..682c5a9 100644 --- a/llvm/include/llvm/Support/Format.h +++ b/llvm/include/llvm/Support/Format.h @@ -84,7 +84,7 @@ class format_object final : public format_object_base { #ifdef _MSC_VER return _snprintf(Buffer, BufferSize, Fmt, std::get(Vals)...); #else - return std::snprintf(Buffer, BufferSize, Fmt, std::get(Vals)...); + return snprintf(Buffer, BufferSize, Fmt, std::get(Vals)...); #endif } -- 2.7.4