From: Benjamin Kramer Date: Sun, 15 Feb 2015 23:17:20 +0000 (+0000) Subject: MinGW's snprintf is not exposed through std::. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=686746d71d9ce8eaa669fabee8b5c56f3ceb6453;p=oota-llvm.git 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 --- 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 }