Work done on the plane, ready to release libxml2-2.0.0, Daniel
diff --git a/nanoftp.h b/nanoftp.h
index 0a41b97..5346528 100644
--- a/nanoftp.h
+++ b/nanoftp.h
@@ -8,6 +8,10 @@
  
 #ifndef __NANO_FTP_H__
 #define __NANO_FTP_H__
+
+#include <libxml/xmlversion.h>
+#ifdef LIBXML_FTP_ENABLED
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -101,5 +105,6 @@
 
 #ifdef __cplusplus
 }
+#endif /* LIBXML_FTP_ENABLED */
 #endif
 #endif /* __NANO_FTP_H__ */