diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index 93b2ca1d2..9da40e536 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -43,7 +43,7 @@ using ordered_json = nlohmann::ordered_json; #endif // for #4440 -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 #include #endif @@ -944,7 +944,7 @@ TEST_CASE("regression tests 2") CHECK(p.y == 2); } -#ifdef JSON_HAS_RANGES +#if JSON_HAS_RANGES == 1 SECTION("issue 4440") { auto noOpFilter = std::views::filter([](auto&&)