aboutsummaryrefslogtreecommitdiff
path: root/vendor/md5/src/compat-5.2.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/md5/src/compat-5.2.h')
-rw-r--r--vendor/md5/src/compat-5.2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/md5/src/compat-5.2.h b/vendor/md5/src/compat-5.2.h
new file mode 100644
index 00000000..c80fd616
--- /dev/null
+++ b/vendor/md5/src/compat-5.2.h
@@ -0,0 +1,15 @@
1#if !defined LUA_VERSION_NUM
2/* Lua 5.0 */
3#define luaL_Reg luaL_reg
4
5#define luaL_addchar(B,c) \
6 ((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
7 (*(B)->p++ = (char)(c)))
8#endif
9
10#if LUA_VERSION_NUM==501
11/* Lua 5.1 */
12#define lua_rawlen lua_objlen
13#endif
14
15void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);