summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r--src/storage/chewing_key.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h
index 41b5664..f3202e8 100644
--- a/src/storage/chewing_key.h
+++ b/src/storage/chewing_key.h
@@ -25,12 +25,14 @@
#include <glib.h>
#include "chewing_enum.h"
+using namespace pinyin;
+
+G_BEGIN_DECLS
+
/** @file chewing_key.h
* @brief the definitions of chewing key related classes and structs.
*/
-namespace pinyin{
-
/** Note: The parsed pinyins are stored in the following two
* GArrays to speed up chewing table lookup.
@@ -104,6 +106,6 @@ struct _ChewingKeyRest
typedef struct _ChewingKeyRest ChewingKeyRest;
-};
+G_END_DECLS
#endif