Skip to content

Commit e746f22

Browse files
Naiosdeanberris
authored andcommitted
Introduce NETWORK_URI_EXTERNAL_BOOST to use an external version of boost
1 parent f732ef8 commit e746f22

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/detail/uri_normalize.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
#include <iterator>
77
#include <vector>
88
#include <algorithm>
9+
10+
#ifdef NETWORK_URI_EXTERNAL_BOOST
11+
#include <boost/algorithm/string/split.hpp>
12+
#include <boost/algorithm/string/join.hpp>
13+
#else // NETWORK_URI_EXTERNAL_BOOST
914
#include "../boost/algorithm/string/split.hpp"
1015
#include "../boost/algorithm/string/join.hpp"
16+
#endif // NETWORK_URI_EXTERNAL_BOOST
17+
1118
#include "uri_normalize.hpp"
1219
#include "uri_percent_encode.hpp"
1320
#include "algorithm.hpp"

src/detail/uri_resolve.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66

77
#include "uri_resolve.hpp"
88
#include <algorithm>
9+
10+
#ifdef NETWORK_URI_EXTERNAL_BOOST
11+
#include <boost/algorithm/string/find.hpp>
12+
#include <boost/algorithm/string/erase.hpp>
13+
#include <boost/algorithm/string/replace.hpp>
14+
#include <boost/algorithm/string/predicate.hpp>
15+
#else // NETWORK_URI_EXTERNAL_BOOST
916
#include "../boost/algorithm/string/find.hpp"
1017
#include "../boost/algorithm/string/erase.hpp"
1118
#include "../boost/algorithm/string/replace.hpp"
1219
#include "../boost/algorithm/string/predicate.hpp"
20+
#endif // NETWORK_URI_EXTERNAL_BOOST
1321

1422
namespace network {
1523
namespace detail {

0 commit comments

Comments
 (0)