Skip to content

Commit

Permalink
There is no PQXX_HAVE_RANGES. (#722)
Browse files Browse the repository at this point in the history
Fixes #721.
  • Loading branch information
jtv committed Aug 5, 2023
1 parent bc7d3d1 commit 77e1e08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions include/pqxx/blob.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
# include <filesystem>
#endif

#if defined(PQXX_HAVE_RANGES) && __has_include(<ranges>)
// C++20: Assume support.
#if __has_include(<ranges>)
# include <ranges>
#endif

#if defined(PQXX_HAVE_SPAN) && __has_include(<span>)
// C++20: Assume support.
#if __has_include(<span>)
# include <span>
#endif

Expand Down
8 changes: 3 additions & 5 deletions include/pqxx/strconv.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@
#endif

#include <algorithm>
#include <charconv>
#include <cstring>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <typeinfo>

#if __has_include(<charconv>)
# include <charconv>
#endif

#if defined(PQXX_HAVE_RANGES) && __has_include(<ranges>)
// C++20: Assume support.
#if __has_include(<ranges>)
# include <ranges>
#endif

Expand Down

0 comments on commit 77e1e08

Please sign in to comment.