summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2018-08-19 01:53:47 +0800
committerPeng Wu <alexepico@gmail.com>2018-08-20 12:17:10 +0800
commit9bd208f580e907090037352dc39fbb1f95065eaf (patch)
tree8a2f4009d9dedde5d9f791cd811cfdd393b128dd
parentd9741044eed56707ba134ebda7a364f1df847699 (diff)
downloadlibpinyin-9bd208f580e907090037352dc39fbb1f95065eaf.zip
libpinyin-9bd208f580e907090037352dc39fbb1f95065eaf.tar.gz
libpinyin-9bd208f580e907090037352dc39fbb1f95065eaf.tar.xz
include config.h to allow using getline on freebsd
-rw-r--r--tests/test_zhuyin.cpp4
-rw-r--r--utils/storage/gen_zhuyin_table.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_zhuyin.cpp b/tests/test_zhuyin.cpp
index 0fe840d..442bdb3 100644
--- a/tests/test_zhuyin.cpp
+++ b/tests/test_zhuyin.cpp
@@ -19,6 +19,10 @@
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "zhuyin.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/utils/storage/gen_zhuyin_table.cpp b/utils/storage/gen_zhuyin_table.cpp
index 2cb6a0a..71a4e7b 100644
--- a/utils/storage/gen_zhuyin_table.cpp
+++ b/utils/storage/gen_zhuyin_table.cpp
@@ -19,6 +19,10 @@
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <glib.h>
#include "pinyin_internal.h"