From dcdfeb0415c56c64cfb85a7e48c6056b1c05fc24 Mon Sep 17 00:00:00 2001 From: Seva Date: Tue, 24 Sep 2019 15:35:39 -0400 Subject: [PATCH] http: forward declare json in api --- include/opendht/http.h | 5 ++++- src/http.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/opendht/http.h b/include/opendht/http.h index 6d22e2467..724768272 100644 --- a/include/opendht/http.h +++ b/include/opendht/http.h @@ -34,7 +34,10 @@ #include #include -#include + +namespace Json { +class Value; +} extern "C" { struct http_parser; diff --git a/src/http.cpp b/src/http.cpp index 37872ead0..eedd9016f 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -24,6 +24,7 @@ #include #include #include +#include namespace dht { namespace http {