From 686746d71d9ce8eaa669fabee8b5c56f3ceb6453 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::. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229342 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Support/Format.h b/include/llvm/Support/Format.h index 21bb4f9f486..682c5a99161 100644 --- a/include/llvm/Support/Format.h +++ b/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.34.1