Ready for 1.7.0, major changes, nanohttp, cleanup, binary compat with 1.4,
etc... See Changelog, Daniel.
diff --git a/tree.c b/tree.c
index 006defe..c873898 100644
--- a/tree.c
+++ b/tree.c
@@ -6,12 +6,22 @@
* Daniel.Veillard@w3.org
*/
+#ifdef WIN32
+#define HAVE_FCNTL_H
+#include <io.h>
+#else
#include "config.h"
+#endif
+
#include <stdio.h>
-#include <ctype.h>
-#include <stdlib.h>
#include <string.h> /* for memset() only ! */
+#ifdef HAVE_CTYPE_H
+#include <ctype.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif