Skip to content
Snippets Groups Projects
Commit 3c38858c authored by Albert Gräf's avatar Albert Gräf
Browse files

Lua 5.4 compatibility.

parent a78e5ce0
No related branches found
No related tags found
No related merge requests found
...@@ -1652,7 +1652,11 @@ void pdlua_setup(void) ...@@ -1652,7 +1652,11 @@ void pdlua_setup(void)
char* luaver = "lua 0.6~svn (GPL) 2008 Claude Heiland-Allen <claude@mathr.co.uk>"; char* luaver = "lua 0.6~svn (GPL) 2008 Claude Heiland-Allen <claude@mathr.co.uk>";
char compiled[MAXPDSTRING]; char compiled[MAXPDSTRING];
char luaversionStr[MAXPDSTRING]; char luaversionStr[MAXPDSTRING];
#if LUA_VERSION_NUM < 504
const lua_Number *luaversion = lua_version (NULL); const lua_Number *luaversion = lua_version (NULL);
#else
const lua_Number luavers = lua_version (NULL), *luaversion = &luavers;
#endif
int lvm, lvl; int lvm, lvl;
#ifndef BUILD_DATE #ifndef BUILD_DATE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment