Skip to content

Commit

Permalink
Remove std:: from sprintf
Browse files Browse the repository at this point in the history
Due to libintl #defining sprintf, you can't use a std:: prefix on it.
So tweak catch.hpp accordingly.
  • Loading branch information
jbytheway committed Jun 29, 2019
1 parent fd6120c commit 6541614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/catch/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14766,7 +14766,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);
}
Expand Down

0 comments on commit 6541614

Please sign in to comment.