From f6c0f687372a3eee8bfb7e5099ba8dfc2c36e3fa Mon Sep 17 00:00:00 2001 From: Shrikant Kelkar Date: Mon, 20 Jun 2016 17:36:17 -0700 Subject: [PATCH] MSVS 2013 compatibility changes. --- json11.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/json11.hpp b/json11.hpp index e9fe251..5202ef9 100644 --- a/json11.hpp +++ b/json11.hpp @@ -56,6 +56,18 @@ #include #include +#ifdef _MSC_VER + #if _MSC_VER <= 1800 // VS 2013 + #ifndef noexcept + #define noexcept throw() + #endif + + #ifndef snprintf + #define snprintf _snprintf_s + #endif + #endif +#endif + namespace json11 { enum JsonParse {