mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
add mongo auth support, and copy a md5 lib to 3rd
This commit is contained in:
15
3rd/lua-md5/compat-5.2.h
Normal file
15
3rd/lua-md5/compat-5.2.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#if !defined LUA_VERSION_NUM
|
||||
/* Lua 5.0 */
|
||||
#define luaL_Reg luaL_reg
|
||||
|
||||
#define luaL_addchar(B,c) \
|
||||
((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
|
||||
(*(B)->p++ = (char)(c)))
|
||||
#endif
|
||||
|
||||
#if LUA_VERSION_NUM==501
|
||||
/* Lua 5.1 */
|
||||
#define lua_rawlen lua_objlen
|
||||
#endif
|
||||
|
||||
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
|
||||
Reference in New Issue
Block a user