Diff

util-src/hashes.c @ 6413:a552f4170aed

util-src/*.c: Add macro for compiling with Lua 5.2
author Kim Alvefur <zash@zash.se>
date Wed, 17 Sep 2014 14:30:29 +0200
parent 6412:0e94f89d0e62
child 6615:8e4572a642cb
line wrap: on
line diff
--- a/util-src/hashes.c	Wed Sep 17 02:23:17 2014 +0200
+++ b/util-src/hashes.c	Wed Sep 17 14:30:29 2014 +0200
@@ -27,6 +27,10 @@
 #include <openssl/sha.h>
 #include <openssl/md5.h>
 
+#if (LUA_VERSION_NUM == 502)
+#define luaL_register(L, N, R) luaL_setfuncs(L, R, 0)
+#endif
+
 #define HMAC_IPAD 0x36363636
 #define HMAC_OPAD 0x5c5c5c5c