diff options
author | Peng Wu <alexepico@gmail.com> | 2016-07-04 14:43:31 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-07-04 14:43:31 +0800 |
commit | 1b5818e46068c9f3b7858b9c6dd7cb390691ef4a (patch) | |
tree | 84dd27d4875d60f352ff570e69bb372a7f7a716e | |
parent | ed7159efd0c86b2ed22c0ddceecda90b49d764a8 (diff) | |
download | ibus-libpinyin-1b5818e46068c9f3b7858b9c6dd7cb390691ef4a.tar.gz ibus-libpinyin-1b5818e46068c9f3b7858b9c6dd7cb390691ef4a.tar.xz ibus-libpinyin-1b5818e46068c9f3b7858b9c6dd7cb390691ef4a.zip |
fixes lua
-rw-r--r-- | lua/lua-plugin-init.c | 5 | ||||
-rw-r--r-- | lua/lua-plugin.c | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lua/lua-plugin-init.c b/lua/lua-plugin-init.c index 32b7957..acc750a 100644 --- a/lua/lua-plugin-init.c +++ b/lua/lua-plugin-init.c @@ -26,11 +26,8 @@ #include "lua-plugin.h" -#if LUA_VERSION_NUM >= 502 -/* ugly hack for lua 5.2 */ - +#ifndef lua_objlen #define lua_objlen lua_rawlen - #endif diff --git a/lua/lua-plugin.c b/lua/lua-plugin.c index 5ccb837..39b32f3 100644 --- a/lua/lua-plugin.c +++ b/lua/lua-plugin.c @@ -25,13 +25,15 @@ #include "lua-plugin.h" +#ifndef lua_objlen +#define lua_objlen lua_rawlen +#endif + #if LUA_VERSION_NUM >= 502 /* ugly hack for lua 5.2 */ #define lua_open luaL_newstate -#define lua_objlen lua_rawlen - #endif #define IBUS_ENGINE_PLUGIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), IBUS_TYPE_ENGINE_PLUGIN, IBusEnginePluginPrivate)) |