[libxml2] fix builds not having stdint.h



commit 236ea1ea90aca35489be3f86c6314a306f2271af
Author: Rob Richards <rrichards cdatazone org>
Date:   Mon Aug 27 11:56:07 2012 -0400

    fix builds not having stdint.h

 timsort.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/timsort.h b/timsort.h
index b9bda66..26ebe86 100644
--- a/timsort.h
+++ b/timsort.h
@@ -19,7 +19,16 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#else
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#elif defined(WIN32)
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#endif
+#endif
 
 #ifndef MAX
 #define MAX(x,y) (((x) > (y) ? (x) : (y)))



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