Debian Codegraph @

debian/patches/external-json.patch

raw symbols SCIP
1 Description: Always use system nlohmann::json in headers
2 While setting DPP_USE_EXTERNAL_JSON works to build D++, anything using
3 it needs to also define it, otherwise it will try to use the bundled
4 nlohmann::json which has been removed from the source. This patch will
5 force the headers to always use the system's nlohmann::json.
6 Author: Ben Westover <[email protected]>
7 Bug: https://github.com/brainboxdotcc/DPP/issues/1458
8 Last-Update: 2025-07-01
9
10 --- a/include/dpp/json.h
11 +++ b/include/dpp/json.h
12 @@ -19,11 +19,7 @@
13 * limitations under the License.
14 *
15 ************************************************************************************/
16 -#ifdef DPP_USE_EXTERNAL_JSON
17 - #include <nlohmann/json.hpp>
18 -#else
19 - #include <dpp/nlohmann/json.hpp>
20 -#endif
21 +#include <nlohmann/json.hpp>
22
23 namespace dpp {
24
25 --- a/include/dpp/json_fwd.h
26 +++ b/include/dpp/json_fwd.h
27 @@ -19,11 +19,7 @@
28 * limitations under the License.
29 *
30 ************************************************************************************/
31 -#ifdef DPP_USE_EXTERNAL_JSON
32 - #include <nlohmann/json_fwd.hpp>
33 -#else
34 - #include <dpp/nlohmann/json_fwd.hpp>
35 -#endif
36 +#include <nlohmann/json_fwd.hpp>
37
38 namespace dpp {
39