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>
This commit is contained in:
parent
73fbae6a62
commit
2f59774e79
@ -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),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user