From e8ba960e16332cd5fb956dc41d1ad8a0794c71b4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 12 Dec 2012 09:29:50 -0800 Subject: [PATCH] Workaround for missing snprintf in MSVC. --- format.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/format.cc b/format.cc index 5f07c548..b04045d2 100644 --- a/format.cc +++ b/format.cc @@ -37,6 +37,10 @@ using std::size_t; +#if _MSC_VER +# define snprintf _snprintf +#endif + namespace { // Flags.