diff --git a/src/apps/http/http_client.c b/src/apps/http/http_client.c index 438e374b..4b274891 100644 --- a/src/apps/http/http_client.c +++ b/src/apps/http/http_client.c @@ -57,6 +57,8 @@ #include #include +#if LWIP_TCP && LWIP_CALLBACK_API + /** * HTTPC_DEBUG: Enable debugging for HTTP client. */ @@ -902,3 +904,5 @@ httpc_get_file_dns_to_disk(const char* server_name, u16_t port, const char* uri, return ERR_OK; } #endif /* LWIP_HTTPC_HAVE_FILE_IO */ + +#endif /* LWIP_TCP && LWIP_CALLBACK_API */ \ No newline at end of file diff --git a/src/include/lwip/apps/http_client.h b/src/include/lwip/apps/http_client.h index 5310457c..8a063083 100644 --- a/src/include/lwip/apps/http_client.h +++ b/src/include/lwip/apps/http_client.h @@ -45,6 +45,8 @@ #include "lwip/prot/iana.h" #include "lwip/pbuf.h" +#if LWIP_TCP && LWIP_CALLBACK_API + #ifdef __cplusplus extern "C" { #endif @@ -153,4 +155,6 @@ err_t httpc_get_file_dns_to_disk(const char* server_name, u16_t port, const char } #endif +#endif /* LWIP_TCP && LWIP_CALLBACK_API */ + #endif /* LWIP_HDR_APPS_HTTP_CLIENT_H */