Simple patch for Lua 5.3

This commit is contained in:
Andrew Starks 2015-01-12 15:58:39 -06:00
parent 5edf093643
commit 11aaf3434d
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,9 @@
* 9/11/1999
\*=========================================================================*/
#include "lua.h"
#ifndef luaL_checkint
#define luaL_checkint (int)luaL_checkinteger
#endif
/*-------------------------------------------------------------------------*\
* Current socket library version
\*-------------------------------------------------------------------------*/

View File

@ -24,6 +24,10 @@
#define MIME_API extern
#endif
#ifndef luaL_checkint
#define luaL_checkint (int)luaL_checkinteger
#endif
MIME_API int luaopen_mime_core(lua_State *L);
#endif /* MIME_H */