Comparison

util-src/hashes.c @ 5576:7656b9f06bb5

util.hashes: inttypes.h not available with MS Windows SDK, use MS specific __int32 instead.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 13 May 2013 15:52:01 -0400
parent 5538:62089c9c142d
child 5768:c892709f035d
comparison
equal deleted inserted replaced
5573:ca9f99f7dcbc 5576:7656b9f06bb5
13 * Lua library for sha1, sha256 and md5 hashes 13 * Lua library for sha1, sha256 and md5 hashes
14 */ 14 */
15 15
16 #include <string.h> 16 #include <string.h>
17 #include <stdlib.h> 17 #include <stdlib.h>
18
19 #ifdef _MSC_VER
20 typedef unsigned __int32 uint32_t;
21 #else
18 #include <inttypes.h> 22 #include <inttypes.h>
23 #endif
19 24
20 #include "lua.h" 25 #include "lua.h"
21 #include "lauxlib.h" 26 #include "lauxlib.h"
22 #include <openssl/sha.h> 27 #include <openssl/sha.h>
23 #include <openssl/md5.h> 28 #include <openssl/md5.h>