Comparison

util-src/encodings.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 6602:61b6a4fc65f1
child 6604:478308ee29dd
child 6607:64e6b88b6b21
comparison
equal deleted inserted replaced
6412:0e94f89d0e62 6413:a552f4170aed
17 17
18 #include <string.h> 18 #include <string.h>
19 #include <stdlib.h> 19 #include <stdlib.h>
20 #include "lua.h" 20 #include "lua.h"
21 #include "lauxlib.h" 21 #include "lauxlib.h"
22
23 #if (LUA_VERSION_NUM == 502)
24 #define luaL_register(L, N, R) luaL_setfuncs(L, R, 0)
25 #endif
22 26
23 /***************** BASE64 *****************/ 27 /***************** BASE64 *****************/
24 28
25 static const char code[]= 29 static const char code[]=
26 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 30 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";