mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +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:
committed by
Sébastien Helleu
parent
1d620ce7c7
commit
25809ff592
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user