diff options
author | Peng Wu <alexepico@gmail.com> | 2018-10-31 13:18:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-10-31 13:18:22 +0800 |
commit | 0401ff95be8f8b906d7a79feded7482c4172b28f (patch) | |
tree | 3492205b93ab05e53b3fcd20c3f7b24f639283c1 /src/PYPPinyinEngine.h | |
parent | 17ec73fad0f05cb23c2213ddc0ec2b798bbe6ab3 (diff) | |
download | ibus-libpinyin-0401ff95be8f8b906d7a79feded7482c4172b28f.tar.gz ibus-libpinyin-0401ff95be8f8b906d7a79feded7482c4172b28f.tar.xz ibus-libpinyin-0401ff95be8f8b906d7a79feded7482c4172b28f.zip |
fixes lua build1.10.92
Diffstat (limited to 'src/PYPPinyinEngine.h')
-rw-r--r-- | src/PYPPinyinEngine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PYPPinyinEngine.h b/src/PYPPinyinEngine.h index 4c34ed3..2bc7475 100644 --- a/src/PYPPinyinEngine.h +++ b/src/PYPPinyinEngine.h @@ -22,7 +22,9 @@ #ifndef __PY_LIB_PINYIN_PINYIN_ENGINE_H_ #define __PY_LIB_PINYIN_PINYIN_ENGINE_H_ +#ifdef IBUS_BUILD_LUA_EXTENSION #include "lua-plugin.h" +#endif #include "PYEngine.h" #include "PYPinyinProperties.h" @@ -50,8 +52,10 @@ public: void candidateClicked (guint index, guint button, guint state); private: +#ifdef IBUS_BUILD_LUA_EXTENSION gboolean initLuaPlugin (void); gboolean loadLuaScript (const char * filename); +#endif gboolean processPunct (guint keyval, guint keycode, guint modifiers); @@ -83,7 +87,9 @@ private: EditorPtr m_editors[MODE_LAST]; EditorPtr m_fallback_editor; +#ifdef IBUS_BUILD_LUA_EXTENSION Pointer<IBusEnginePlugin> m_lua_plugin; +#endif }; }; |