From 6566626d54e59afbf32ada25e0ca32f0f7eda045 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sun, 29 Jan 2012 10:20:35 +0800 Subject: [PATCH] fixes PYConfig.cc --- src/PYConfig.cc | 9 +++++++++ src/PYPConfig.cc | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/PYConfig.cc b/src/PYConfig.cc index 1373607..9d29aba 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -20,10 +20,19 @@ */ #include "PYConfig.h" +#include #include "PYTypes.h" #include "PYBus.h" #include "PYDoublePinyinTable.h" +#ifdef HAVE_IBUS_CONFIG_GET_VALUES +/* work around gsettings. */ +static bool operator == (const gchar *lhs, const std::string &rhs) +{ + return strcasecmp (lhs, rhs.c_str ()) == 0; +} +#endif + namespace PY { const gchar * const CONFIG_CORRECT_PINYIN = "CorrectPinyin"; diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc index 415e396..155a637 100644 --- a/src/PYPConfig.cc +++ b/src/PYPConfig.cc @@ -27,7 +27,7 @@ #ifdef HAVE_IBUS_CONFIG_GET_VALUES /* work around gsettings. */ -bool operator == (const gchar *lhs, const std::string &rhs) +static bool operator == (const gchar *lhs, const std::string &rhs) { return strcasecmp (lhs, rhs.c_str ()) == 0; } -- 2.7.4