diff options
author | Arvydas Sidorenko <asido4@gmail.com> | 2012-07-03 11:31:54 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-07-03 11:31:54 +0200 |
commit | 2f59774e7941bf06657d2ba0d1aabbb14945ac20 (patch) | |
tree | 7574abdf9975fb181337a39bb8bd8e6d2724f755 /src/plugins/scripts/lua | |
parent | 73fbae6a621a0c4d0d0b86270ca58bdc157b63ed (diff) | |
download | weechat-2f59774e7941bf06657d2ba0d1aabbb14945ac20.zip |
lua: rename luaL_reg to luaL_Reg (compatibility with Lua 5.2)
The original struct name is luaL_Reg, but Lua v5.1 had a
`typedef luaL_reg luaL_Reg`, which in v5.2 was removed
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Diffstat (limited to 'src/plugins/scripts/lua')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua-api.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua-api.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index 85a91076b..8a07c4e2d 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -6186,7 +6186,7 @@ weechat_lua_api_constant_weechat_hook_signal_pointer (lua_State *L) * Lua subroutines */ -const struct luaL_reg weechat_lua_api_funcs[] = { +const struct luaL_Reg weechat_lua_api_funcs[] = { API_DEF_FUNC(register), API_DEF_FUNC(plugin_get_name), API_DEF_FUNC(charset_set), diff --git a/src/plugins/scripts/lua/weechat-lua-api.h b/src/plugins/scripts/lua/weechat-lua-api.h index e198a4c04..b37789215 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.h +++ b/src/plugins/scripts/lua/weechat-lua-api.h @@ -21,7 +21,7 @@ #ifndef __WEECHAT_LUA_API_H #define __WEECHAT_LUA_API_H 1 -extern struct luaL_reg weechat_lua_api_funcs[]; +extern struct luaL_Reg weechat_lua_api_funcs[]; extern int weechat_lua_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer, |