Work done on the plane, ready to release libxml2-2.0.0, Daniel
diff --git a/nanohttp.h b/nanohttp.h
index 7e0e2ce..49f7645 100644
--- a/nanohttp.h
+++ b/nanohttp.h
@@ -8,6 +8,10 @@
  
 #ifndef __NANO_HTTP_H__
 #define __NANO_HTTP_H__
+
+#include <libxml/xmlversion.h>
+#ifdef LIBXML_HTTP_ENABLED
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -33,5 +37,7 @@
 void	xmlNanoHTTPClose	(void *ctx);
 #ifdef __cplusplus
 }
+
+#endif /* LIBXML_HTTP_ENABLED */
 #endif
 #endif /* __NANO_HTTP_H__ */