Description: Always use system nlohmann::json in headers While setting DPP_USE_EXTERNAL_JSON works to build D++, anything using it needs to also define it, otherwise it will try to use the bundled nlohmann::json which has been removed from the source. This patch will force the headers to always use the system's nlohmann::json. Author: Ben Westover Bug: https://github.com/brainboxdotcc/DPP/issues/1458 Last-Update: 2025-07-01 --- a/include/dpp/json.h +++ b/include/dpp/json.h @@ -19,11 +19,7 @@ * limitations under the License. * ************************************************************************************/ -#ifdef DPP_USE_EXTERNAL_JSON - #include -#else - #include -#endif +#include namespace dpp { --- a/include/dpp/json_fwd.h +++ b/include/dpp/json_fwd.h @@ -19,11 +19,7 @@ * limitations under the License. * ************************************************************************************/ -#ifdef DPP_USE_EXTERNAL_JSON - #include -#else - #include -#endif +#include namespace dpp {