[xml] dict hashing build problem



At a minimum MSVC compilers dont have stdint.h.
Anyone see any issues this patch might have on non win32 msvc builds?

Rob
Index: dict.c
===================================================================
--- dict.c      (revision 3741)
+++ dict.c      (working copy)
@@ -20,7 +20,12 @@
 #include "libxml.h"
 
 #include <string.h>
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#elif defined(WIN32)
+typedef unsigned __int32 uint32_t;
+typedef unsigned __int16 uint16_t;
+#endif
 #include <libxml/tree.h>
 #include <libxml/dict.h>
 #include <libxml/xmlmemory.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]