diff --git a/src/json.hpp b/src/json.hpp index 4de98e7e72..03071a9595 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -89,7 +89,7 @@ SOFTWARE. #endif // allow to disable exceptions -#if not defined(JSON_NOEXCEPTION) || defined(__EXCEPTIONS) +#if not defined(JSON_NOEXCEPTION) && defined(__EXCEPTIONS) #define JSON_THROW(exception) throw exception #define JSON_TRY try #define JSON_CATCH(exception) catch(exception)