util.hashes: inttypes.h not available with MS Windows SDK, use MS specific __int32 instead.
authorWaqas Hussain <waqas20@gmail.com>
Mon, 13 May 2013 15:52:01 -0400
changeset 5576 7656b9f06bb5
parent 5573 ca9f99f7dcbc
child 5577 8b09b0d068d4
util.hashes: inttypes.h not available with MS Windows SDK, use MS specific __int32 instead.
util-src/hashes.c
--- a/util-src/hashes.c	Sat May 11 13:54:02 2013 +0100
+++ b/util-src/hashes.c	Mon May 13 15:52:01 2013 -0400
@@ -15,7 +15,12 @@
 
 #include <string.h>
 #include <stdlib.h>
+
+#ifdef _MSC_VER
+typedef unsigned __int32 uint32_t;
+#else
 #include <inttypes.h>
+#endif
 
 #include "lua.h"
 #include "lauxlib.h"