From c44798659518fb2c566035edf9f07a052cbcecb5 Mon Sep 17 00:00:00 2001 From: pierobot Date: Mon, 15 Feb 2016 19:22:25 -0600 Subject: [PATCH] Fix json11.hpp for building on Windows https://github.com/dropbox/json11/issues/2#issuecomment-111080642 --- include/json11/json11.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/json11/json11.hpp b/include/json11/json11.hpp index a99e241..d912a90 100644 --- a/include/json11/json11.hpp +++ b/include/json11/json11.hpp @@ -56,6 +56,13 @@ #include #include +#ifdef _MSC_VER + #if _MSC_VER <= 1800 // VS 2013 + #define noexcept throw() + #define snprintf _snprintf + #endif +#endif + namespace json11 { enum JsonParse {