diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-03 13:19:12 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-22 12:23:14 +0800 |
commit | 1aa1e525b824b52795fdd84551077f4fdd1d3982 (patch) | |
tree | c357240d18352b856f3733fb47f805b421124598 /src/PYConfig.cc | |
parent | ff59fc1cc01c973d43cef4365293b906690c6481 (diff) | |
download | ibus-libpinyin-1aa1e525b824b52795fdd84551077f4fdd1d3982.tar.gz ibus-libpinyin-1aa1e525b824b52795fdd84551077f4fdd1d3982.tar.xz ibus-libpinyin-1aa1e525b824b52795fdd84551077f4fdd1d3982.zip |
add compile flags
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r-- | src/PYConfig.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc index 9e539c8..47a7a7e 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -23,7 +23,9 @@ #include "PYTypes.h" #include "PYBus.h" #include "PYDoublePinyinTable.h" +#ifdef IBUS_BUILD_LIBPINYIN #include "PYLibPinyin.h" +#endif namespace PY { @@ -339,10 +341,12 @@ Config::valueChangedCallback (IBusConfig *config, self->valueChanged (section, name, value); if (self->m_section != section) return; +#ifdef IBUS_BUILD_LIBPINYIN if (self->m_section == "engine/Pinyin") LibPinyinBackEnd::instance ().setPinyinOptions (self); if (self->m_section == "engine/Bopomofo") LibPinyinBackEnd::instance ().setChewingOptions (self); +#endif } static const struct { |