Allow to remove libmicrohttpd (HTTP server)
[src/app-framework-binder.git] / src / afb-hreq.h
index bae178d..b23f54a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2016-2019 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,6 +17,8 @@
 
 #pragma once
 
+#if WITH_LIBMICROHTTPD
+
 #include "afb-xreq.h"
 
 struct json_object;
@@ -98,3 +100,5 @@ extern void afb_hreq_addref(struct afb_hreq *hreq);
 extern void afb_hreq_unref(struct afb_hreq *hreq);
 
 extern struct afb_hreq *afb_hreq_create();
+
+#endif