From d4ac1e86bfb8079994d290d31b3e50760e594740 Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Sat, 29 Jun 2019 11:16:31 +0100 Subject: [PATCH] Remove std:: from sprintf Due to libintl #defining sprintf, you can't use a std:: prefix on it. So tweak catch.hpp accordingly. --- tests/catch/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catch/catch.hpp b/tests/catch/catch.hpp index a5149abd801b4..e62d863ce0e01 100644 --- a/tests/catch/catch.hpp +++ b/tests/catch/catch.hpp @@ -15553,7 +15553,7 @@ namespace Catch { #ifdef _MSC_VER sprintf_s(buffer, "%.3f", duration); #else - std::sprintf(buffer, "%.3f", duration); + sprintf(buffer, "%.3f", duration); #endif return std::string(buffer); }