summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pinyin.h3
-rw-r--r--tests/test_chewing.cpp1
-rw-r--r--tests/test_phrase.cpp1
-rw-r--r--tests/test_pinyin.cpp1
4 files changed, 5 insertions, 1 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 6002315..be9f1bf 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -23,10 +23,11 @@
#ifndef PINYIN_H
#define PINYIN_H
-#include <stdio.h>
+
#include "novel_types.h"
#include "pinyin_custom2.h"
+
G_BEGIN_DECLS
typedef struct _ChewingKey ChewingKey;
diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp
index f74cf02..5a5701f 100644
--- a/tests/test_chewing.cpp
+++ b/tests/test_chewing.cpp
@@ -21,6 +21,7 @@
#include "pinyin.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/test_phrase.cpp b/tests/test_phrase.cpp
index 72639e1..6e5ef3b 100644
--- a/tests/test_phrase.cpp
+++ b/tests/test_phrase.cpp
@@ -21,6 +21,7 @@
#include "pinyin.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index 76a235e..f94263b 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -21,6 +21,7 @@
#include "pinyin.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>