Allow to remove libmicrohttpd (HTTP server)
[src/app-framework-binder.git] / src / afb-hsrv.h
index 7d496bc..c99d026 100644 (file)
@@ -18,6 +18,8 @@
 
 #pragma once
 
+#if WITH_LIBMICROHTTPD
+
 struct afb_hsrv;
 struct afb_hreq;
 struct locale_root;
@@ -35,3 +37,5 @@ extern int afb_hsrv_add_interface(struct afb_hsrv *hsrv, const char *uri);
 extern int afb_hsrv_add_interface_tcp(struct afb_hsrv *hsrv, const char *itf, uint16_t port);
 
 extern void afb_hsrv_run(struct afb_hsrv *hsrv);
+
+#endif