Work done on the plane, ready to release libxml2-2.0.0, Daniel
diff --git a/nanohttp.c b/nanohttp.c
index 438257b..7f5a153 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -21,7 +21,9 @@
#include "config.h"
#endif
+#include "xmlversion.h"
+#ifdef LIBXML_HTTP_ENABLED
#include <stdio.h>
#include <string.h>
@@ -59,8 +61,8 @@
#include <strings.h>
#endif
-#include "xmlmemory.h"
-#include "nanohttp.h"
+#include <libxml/xmlmemory.h>
+#include <libxml/nanohttp.h>
#ifdef STANDALONE
#define DEBUG_HTTP
@@ -1231,3 +1233,12 @@
return(0);
}
#endif /* STANDALONE */
+#else /* !LIBXML_HTTP_ENABLED */
+#ifdef STANDALONE
+#include <stdio.h>
+int main(int argc, char **argv) {
+ printf("%s : HTTP support not compiled in\n", argv[0]);
+ return(0);
+}
+#endif /* STANDALONE */
+#endif /* LIBXML_HTTP_ENABLED */