Skip to content

Commit dcdfeb0

Browse files
binarytrailsaberaud
authored andcommitted
http: forward declare json in api
1 parent 833dc7f commit dcdfeb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/opendht/http.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434

3535
#include <memory>
3636
#include <queue>
37-
#include <json/json.h>
37+
38+
namespace Json {
39+
class Value;
40+
}
3841

3942
extern "C" {
4043
struct http_parser;

src/http.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <asio.hpp>
2525
#include <restinio/impl/tls_socket.hpp>
2626
#include <http_parser.h>
27+
#include <json/json.h>
2728

2829
namespace dht {
2930
namespace http {

0 commit comments

Comments
 (0)