From 1882088834620730520694805954431773142869 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 1 Sep 2023 14:23:06 -0400 Subject: Make the json exception macro specifiable externally too Thanks, windows --- json/json.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'json/json.h') diff --git a/json/json.h b/json/json.h index 399de6ca..8208038b 100644 --- a/json/json.h +++ b/json/json.h @@ -469,6 +469,7 @@ public: #if !defined(JSON_IS_AMALGAMATION) #include "forwards.h" #endif // if !defined(JSON_IS_AMALGAMATION) +#include #include #include #include @@ -502,11 +503,12 @@ public: #pragma warning(disable : 4251) #endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING) +#ifndef JSONCPP_EXCEPTION // XXX: BN: Use our exception class for extra details #include "../exceptions.h" #define JSONCPP_EXCEPTION ExceptionWithStackTrace // #define JSONCPP_EXCEPTION std::runtime_error - +#endif #pragma pack(push, 8) -- cgit v1.3.1