|
@@ -60,17 +60,20 @@ do {
|
|
|
#endif
|
|
|
|
|
|
/* a number of the hash function use uint32_t which isn't defined on Pre VS2010 */
|
|
|
-#if defined (_WIN32)
|
|
|
+#if defined(_WIN32)
|
|
|
#if defined(_MSC_VER) && _MSC_VER >= 1600
|
|
|
#include <stdint.h>
|
|
|
-#elif defined(__WATCOMC__)
|
|
|
+#elif defined(__WATCOMC__) || defined(__MINGW32__) || defined(__CYGWIN__)
|
|
|
#include <stdint.h>
|
|
|
#else
|
|
|
typedef unsigned int uint32_t;
|
|
|
typedef unsigned char uint8_t;
|
|
|
#endif
|
|
|
-#else
|
|
|
+#elif defined(__GNUC__) && !defined(__VXWORKS__)
|
|
|
#include <stdint.h>
|
|
|
+#else
|
|
|
+typedef unsigned int uint32_t;
|
|
|
+typedef unsigned char uint8_t;
|
|
|
#endif
|
|
|
|
|
|
#define UTHASH_VERSION 1.9.9
|