summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/chewing_key.h8
-rw-r--r--src/storage/pinyin_custom2.h6
2 files changed, 9 insertions, 5 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
diff --git a/src/storage/pinyin_custom2.h b/src/storage/pinyin_custom2.h
index 7e107c1..4685a07 100644
--- a/src/storage/pinyin_custom2.h
+++ b/src/storage/pinyin_custom2.h
@@ -22,7 +22,9 @@
#ifndef PINYIN_CUSTOM2_H
#define PINYIN_CUSTOM2_H
-namespace pinyin{
+#include <glib.h>
+
+G_BEGIN_DECLS
/**
* PinyinTableFlag:
@@ -104,6 +106,6 @@ enum ChewingScheme
CHEWING_DEFAULT = CHEWING_STANDARD
};
-};
+G_END_DECLS
#endif