1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

lua: fix broken LUA_VERSION check

/usr/include/lua-5.1/lua.h:19:25: error: token ""Lua 5.1"" is not valid
in preprocessor expressions
This commit is contained in:
LuK1337
2024-08-17 09:01:17 +02:00
committed by Sébastien Helleu
parent 94f906fd8a
commit 9f3a68ed15
+1 -1
View File
@@ -1272,7 +1272,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
#if defined(LUA_VERSION_MAJOR) && defined(LUA_VERSION_MINOR)
weechat_hashtable_set (plugin->variables, "interpreter_version",
LUA_VERSION_MAJOR "." LUA_VERSION_MINOR);
#elif LUA_VERSION
#elif defined(LUA_VERSION)
weechat_hashtable_set (plugin->variables, "interpreter_version",
LUA_VERSION);
#else