diff --git a/examples/http_client.cpp b/examples/http_client.cpp index d2359fe..29eec75 100644 --- a/examples/http_client.cpp +++ b/examples/http_client.cpp @@ -1,6 +1,6 @@ +#define NETLIB_USE_HTTP + #include "../src/netlib.hpp" -#include "../src/http/client.hpp" -#include "../src/http/http.hpp" #include #include #include diff --git a/src/netlib.hpp b/src/netlib.hpp index 24b48ee..91cc8fd 100644 --- a/src/netlib.hpp +++ b/src/netlib.hpp @@ -2,4 +2,8 @@ #include "client.hpp" #include "server.hpp" -#include "thread_pool.hpp" \ No newline at end of file +#include "thread_pool.hpp" + +#ifdef NETLIB_USE_HTTP +#include "http/client.hpp" +#endif