From 240ddb6a1b7aae7c6528e328995812ee695a73af Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Tue, 31 Mar 2015 12:39:44 -0500 Subject: [PATCH] use std::snprintf for C++11 --- src/lib_json/json_writer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index f7ad1e2..ef976bf 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -29,6 +29,8 @@ #if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below #define snprintf _snprintf +#elif __cplusplus >= 201103L +#define snprintf std::snprintf #endif #if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0