commit | 236ea1ea90aca35489be3f86c6314a306f2271af | [log] [tgz] |
---|---|---|
author | Rob Richards <rrichards@cdatazone.org> | Mon Aug 27 11:56:07 2012 -0400 |
committer | Rob Richards <rrichards@cdatazone.org> | Mon Aug 27 11:56:07 2012 -0400 |
tree | 0e45012a247c93d0b5f96d2075fc78c2a927fd90 | |
parent | 8f2d6b575a23e2c4c4a6e831ecaf0b7bfb55c2b4 [diff] |
fix builds not having stdint.h
diff --git a/timsort.h b/timsort.h index b9bda66..26ebe86 100644 --- a/timsort.h +++ b/timsort.h
@@ -19,7 +19,16 @@ #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)))